From patchwork Thu Nov 2 08:39:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 1858376 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SLcml0FfLz1yQ6 for ; Thu, 2 Nov 2023 19:41:41 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CF8463858412 for ; Thu, 2 Nov 2023 08:41:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 8B0803858C5E for ; Thu, 2 Nov 2023 08:41:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8B0803858C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8B0803858C5E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914488; cv=none; b=LKwqeDcPvTiwKk5bqSu9uTtEWUW0fZzmWoU6+TxLAjt9blL6xgjRQ6mKG90ztTlmKeFVyBHjG6zzey4igkzEZd2kOpvTzDHWooVpNCUkY5pa2Tu1PNZT6HdlOR0DNjgaXUPFCILtqbeYzd3QQgrkth2nsBOGHcL14A8BxxMKE9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914488; c=relaxed/simple; bh=mF5RXHHfe+RaQ6w0T9eXJMMHTBcN2Kxna86iKDLinLA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=XbMOXEDSTmLHD341KvGrMja2+fONL4H8+lxAchf41Tm4iY3AoJlywcbDtJ0Bsnr6wzwUljsQ/Q6FpzGTDMDuOpl1V/fJqLiJ77uy0XydXzK69eaIuyaEXphKQ490HLYCUTC/0INcKx7e9fcHIdngNQh3+0zGtA6JIMXlBWTekfs= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [PATCH 1/4] contrib: add generate_snapshot_index.py Date: Thu, 2 Nov 2023 08:39:05 +0000 Message-ID: <20231102084058.1142941-1-sam@gentoo.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_LOTSOFHASH, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Script to create a map between weekly snapshots and the commit they're based on with space-separated format BRANCH-DATE COMMIT. For example: 8-20210107 5114ee0676e432493ada968e34071f02fb08114f 8-20210114 f9267925c648f2ccd9e4680b699e581003125bcf ... This is helpful for bisects and quickly looking up the information from bug reports. contrib/: * generate_snapshot_index.py: New file. Signed-off-by: Sam James --- contrib/generate_snapshot_index.py | 79 ++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 contrib/generate_snapshot_index.py diff --git a/contrib/generate_snapshot_index.py b/contrib/generate_snapshot_index.py new file mode 100755 index 000000000000..80fc14b2cf1e --- /dev/null +++ b/contrib/generate_snapshot_index.py @@ -0,0 +1,79 @@ +#!/usr/bin/env python3 +# +# Copyright (C) 2023 Free Software Foundation, Inc. +# Contributed by Sam James. +# +# This script is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# Script to create a map between weekly snapshots and the commit they're based on. +# Creates known_snapshots.txt with space-separated format: BRANCH-DATE COMMIT +# For example: +# 8-20210107 5114ee0676e432493ada968e34071f02fb08114f +# 8-20210114 f9267925c648f2ccd9e4680b699e581003125bcf + +import os +import re +import urllib.request + +MIRROR = "https://mirrorservice.org/sites/sourceware.org/pub/gcc/snapshots/" + + +def get_remote_snapshot_list() -> list[str]: + # Parse the HTML index for links to snapshots + with urllib.request.urlopen(MIRROR) as index_response: + html = index_response.read().decode("utf-8") + snapshots = re.findall(r'href="([0-9]+-.*)"', html) + + return snapshots + + +def load_cached_entries() -> dict[str, str]: + local_snapshots = {} + + with open("known_snapshots.txt", encoding="utf-8") as local_entries: + for entry in local_entries.readlines(): + if not entry: + continue + + date, commit = entry.strip().split(" ") + local_snapshots[date] = commit + + return local_snapshots + + +remote_snapshots = get_remote_snapshot_list() +try: + known_snapshots = load_cached_entries() +except FileNotFoundError: + # No cache available + known_snapshots = {} + +# This would give us chronological order (as in by creation) +# snapshots.sort(reverse=False, key=lambda x: x.split('-')[1]) +# snapshots.sort(reverse=True, key=lambda x: x.split('-')[0]) + +for snapshot in remote_snapshots: + # 8-20210107/ -> 8-20210107 + snapshot = snapshot.strip("/") + + # Don't fetch entries we already have stored. + if snapshot in known_snapshots: + continue + + # The READMEs are plain text with several lines, one of which is: + # "with the following options: git://gcc.gnu.org/git/gcc.git branch releases/gcc-8 revision e4e5ad2304db534957c4af612aa288cb6ef51f25"" + # We match after 'revision ' to grab the commit used. + with urllib.request.urlopen(f"{MIRROR}/{snapshot}/README") as readme_response: + data = readme_response.read().decode("utf-8") + parsed_commit = re.findall(r"revision (.*)", data)[0] + known_snapshots[snapshot] = parsed_commit + +# Dump it all back out to disk. +with open("known_snapshots.txt.tmp", "w", encoding="utf-8") as known_entries: + for name, stored_commit in known_snapshots.items(): + known_entries.write(f"{name} {stored_commit}\n") + +os.rename("known_snapshots.txt.tmp", "known_snapshots.txt") From patchwork Thu Nov 2 08:39:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 1858375 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SLcml0SQPz1yQs for ; Thu, 2 Nov 2023 19:41:42 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4AD5B3858C35 for ; Thu, 2 Nov 2023 08:41:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 068993858C78 for ; Thu, 2 Nov 2023 08:41:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 068993858C78 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 068993858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914487; cv=none; b=e5mfIaFVE+35WMCx3WMXvLfwWUM7xXwZ1TUcHEKyQDnEwdK2TZTidAAPil16Vj1YGLkzftCU3fpmfcmkNHDbHY3UxTwhPqzIXrXpm172QMaVxd8/DakpQ0hysMpK+wLOBZlxMg82G0CzuJlBiFqWJnCIKxKSIvjyRL/rM5YCYc8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914487; c=relaxed/simple; bh=paC7pOknscbjjo/QFpgS3X5/UUfgSo72HK5UX+NHHxc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=KWV8xx8xTvUO4jURGmA9Uhp6baLVyKGbrAXpGMu1u6aVbG/90XTI3QKN7LngPTaNMB+cYZHFKMlxQgB1/DH5Ik6XcYK5GDZS8JQJIuxNdcAjehYrAyygGC+poTtVBe3bZkj4Y3nTOSBbq7caeVzEiYINYrXVDu/0iFsNEb2wnJk= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [PATCH 2/4] maintainer-scripts/gcc_release: create index between snapshots <-> commits Date: Thu, 2 Nov 2023 08:39:06 +0000 Message-ID: <20231102084058.1142941-2-sam@gentoo.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231102084058.1142941-1-sam@gentoo.org> References: <20231102084058.1142941-1-sam@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Create and maintain a known_snapshots.txt index with space-separated format BRANCH-DATE COMMIT. For example: 8-20210107 5114ee0676e432493ada968e34071f02fb08114f 8-20210114 f9267925c648f2ccd9e4680b699e581003125bcf ... This is helpful for bisects and quickly looking up the information from bug reports. maintainer-scripts/ * gcc_release: Create known_snapshots.txt as an index between snapshots and commits. Signed-off-by: Sam James --- Note that there's a few different approaches we can take here. I've gone for the simpler one of having it still fetch from the remote site and parse because it's obviously hard for me to test a part which runs on the remote machine. We can skip this patch for now if desired. I have mixed feelings about complicating the contrib/generate_snapshot_index.py script to take an URL / path as I'd ideally like it to still be easily usable locally. We could have it be generated locally and then uploaded as well, as another option. maintainer-scripts/gcc_release | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 962b8efe99a7..4cd1fa799660 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -448,6 +448,9 @@ announce_snapshot() { SNAPSHOT_INDEX=${RELEASE}/index.html changedir "${SNAPSHOTS_DIR}" + # Create an index if it doesn't already exist and populate it before we add + # the new snapshot. + ${PYTHON} ${SOURCE_DIRECTORY}/contrib/generate_snapshot_index.py || error "Failed to generate snapshot index" echo \ "Snapshot gcc-"${RELEASE}" is now available on https://gcc.gnu.org/pub/gcc/snapshots/"${RELEASE}"/ @@ -514,6 +517,9 @@ Last modified "${TEXT_DATE}" rm -f LATEST-${BRANCH} ln -s ${RELEASE} LATEST-${BRANCH} + # Add the snapshot we just made to the index + printf "${RELEASE} ${GITREV}\n" >> known_snapshots.txt + inform "Sending mail" export QMAILHOST=gcc.gnu.org @@ -617,6 +623,7 @@ GZIP="${GZIP:-gzip --best}" SCP="${SCP:-scp -p}" SSH="${SSH:-ssh}" TAR="${TAR:-tar}" +PYTHON="${PYTHON:-python3}" ######################################################################## # Command Line Processing From patchwork Thu Nov 2 08:39:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 1858377 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SLcnF3k6Xz1yQ6 for ; Thu, 2 Nov 2023 19:42:09 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 164C83857345 for ; Thu, 2 Nov 2023 08:42:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 02A9D3858C2C for ; Thu, 2 Nov 2023 08:41:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 02A9D3858C2C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 02A9D3858C2C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914488; cv=none; b=rg76Tl66mQhOQrwM5RUCjndwMFpYq24BK7+QEpmpXrwEsPBTjiw5M8dwjcM1PQNY5jOUzz+kKB6Ny7B+IOXjWPAfCxTe2C0YR9Gn2wu+0LisAm+1C2ioKC+44KkGgxK82sxns77tRfAxOwubnQueqfjIGrqc0hJu1OSERb6vVEI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914488; c=relaxed/simple; bh=SXrEyFlRGa+AvZIZK7NOdK8KJJf9r1WO3sYTI6MWqUc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=WJe0MjM0mqO71KdpsGlhQxSgTsF1txcER9NpbBVGm4SvRYiBpLt5dp5kV0Y3ldUcdXzoNC7oHzxh4eoCGqzLvH1BOcb7GSNdkMMoGZBx2rDC+t4+8BchsFAjb6rJklbwGh5VWCnXSUlBKg7HUoHRt5W/7B1asU7i5zt0wIBoBPg= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [PATCH 3/4] maintainer-scripts/gcc_release: use HTTPS for links Date: Thu, 2 Nov 2023 08:39:07 +0000 Message-ID: <20231102084058.1142941-3-sam@gentoo.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231102084058.1142941-1-sam@gentoo.org> References: <20231102084058.1142941-1-sam@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org maintainer-scripts/ * gcc_release: Use HTTPS for links. Signed-off-by: Sam James --- maintainer-scripts/gcc_release | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 4cd1fa799660..cf6a5731c609 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -25,7 +25,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . +# . # ######################################################################## @@ -454,7 +454,7 @@ announce_snapshot() { echo \ "Snapshot gcc-"${RELEASE}" is now available on https://gcc.gnu.org/pub/gcc/snapshots/"${RELEASE}"/ -and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. +and on various mirrors, see https://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC "${BRANCH}" git branch with the following options: "git://gcc.gnu.org/git/gcc.git branch ${GITBRANCH} revision ${GITREV}" @@ -472,7 +472,7 @@ You'll find:

GCC "${RELEASE}" Snapshot

-

The GCC Project makes +

The GCC Project makes periodic snapshots of the GCC source tree available to the public for testing purposes.

From patchwork Thu Nov 2 08:39:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 1858378 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SLcnN5rs5z1yQ6 for ; Thu, 2 Nov 2023 19:42:16 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 716F4385771E for ; Thu, 2 Nov 2023 08:42:13 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 08A3B3858C2D for ; Thu, 2 Nov 2023 08:41:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 08A3B3858C2D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 08A3B3858C2D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914488; cv=none; b=OC0ILAjxEWWcXWpCAOkJhYSIIJuABLhnpNgTEtV7p3yelfryBJqrV5JHib9HwEzDMuDC+hjVp0SXaIRvDlpUkofLRqOTWnuTCgDnELTXC7BogDoAGyAOI9ENMqgMJ/ffodZ4L7VmJLP5e7O/uA9/7x4FrSzqk5nTS1ZgoIpn2kI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914488; c=relaxed/simple; bh=9Tk87XZmWR4GKgSWb2n9V/LL0BHKT2Bri0chcm6aQKQ=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=T3nyLKj1/AeEcwIHjgA6BWVx0zsS/+htv1awhvVO1z8WQnDlRpsXSB4AmcPQN2HvocxnvfyoPXDHeKnQMa0j7y5yUs2SSFoUllFLrXxFFTlMkSBpwE13dobY/HfKPKpy2oj1BEjmar3uu/LwT6mda1+uL3wfIY0f6K9eKZLySQw= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [PATCH 4/4] maintainer-scripts/gcc_release: cleanup whitespace Date: Thu, 2 Nov 2023 08:39:08 +0000 Message-ID: <20231102084058.1142941-4-sam@gentoo.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231102084058.1142941-1-sam@gentoo.org> References: <20231102084058.1142941-1-sam@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org maintainer-scripts/ * gcc_release: Cleanup whitespace. Signed-off-by: Sam James --- maintainer-scripts/gcc_release | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index cf6a5731c609..965163b65b74 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -153,7 +153,7 @@ build_sources() { # Update this ChangeLog file only if it does not yet contain the # entry we are going to add. (This is a safety net for repeated # runs of this script for the same release.) - if ! grep "GCC ${RELEASE} released." ${SOURCE_DIRECTORY}/${x} > /dev/null ; then + if ! grep "GCC ${RELEASE} released." ${SOURCE_DIRECTORY}/${x} > /dev/null ; then cat - ${SOURCE_DIRECTORY}/${x} > ${SOURCE_DIRECTORY}/${x}.new <The GCC Project makes periodic snapshots of the GCC source tree available to the public for testing purposes.

- +

If you are planning to download and use one of our snapshots, then we highly recommend you join the GCC developers list. Details for how to sign up can be found on the GCC project home page.

@@ -484,7 +484,7 @@ how to sign up can be found on the GCC project home page.

with the following options: "git://gcc.gnu.org/git/gcc.git branch ${GITBRANCH} revision ${GITREV}"

" > ${SNAPSHOT_INDEX} - + snapshot_print gcc-${RELEASE}.tar.xz "Complete GCC" echo \ @@ -554,7 +554,7 @@ FTP_PATH=/var/ftp/pub/gcc # The directory in which snapshots will be placed. SNAPSHOTS_DIR=${FTP_PATH}/snapshots -# The major number for the release. For release `3.0.2' this would be +# The major number for the release. For release `3.0.2' this would be # `3' RELEASE_MAJOR="" # The minor number for the release. For release `3.0.2' this would be @@ -566,7 +566,7 @@ RELEASE_REVISION="" # The complete name of the release. RELEASE="" -# The name of the branch from which the release should be made, in a +# The name of the branch from which the release should be made, in a # user-friendly form. BRANCH=""