From patchwork Thu Mar 16 00:32:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 70521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp203996wrt; Wed, 15 Mar 2023 17:32:43 -0700 (PDT) X-Google-Smtp-Source: AK7set8ACpz5/IDnSTPJiDxa9evVdU33k4Iz+EIf5lJ3u2XwILkYN+02lB7OcqT+rWcrLUL8JSzO X-Received: by 2002:a17:907:c498:b0:92f:7c42:8637 with SMTP id tp24-20020a170907c49800b0092f7c428637mr3350844ejc.30.1678926762996; Wed, 15 Mar 2023 17:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678926762; cv=none; d=google.com; s=arc-20160816; b=0/ie+gLVM04XKiSt76kiWknqs52PQkcjz/BHJfXC6KNmvEpQuE/Ke7ZFwclkrq2pKH 7DqoexHbg6Y24JYdOy0uYuxIZnNDQwqaingD5pk3pffo6RDU86tvTPHQXy6Dmr6bd9Yi D7iuVy7VwYzxBdF2V6Dluj3p7VDWrZw0tPUXIoG6xHTQCLahfBQ9FQLWYqrkwWMlTf61 HUGJWnq4soV09eCDFvmYnZOc8dRl70huzNeBcl2tppje0f3BdpWkFDICGcZBOpdsWzB3 R9+v15hUxZPLVCsWQ+rn6rIyrZj5N+UsbYlRd2d8nsOLpAyCISwNyIPVezRGomEKHxan to5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:mime-version:subject :to:from:date:dmarc-filter:delivered-to; bh=N5hFUN/mELBAY4eGz6gmNn7tCyZr4i+VmYiKM8IgHBg=; b=E6uHIMrJiZssUqY+/KP4xmbWp0JuG4YxpWA7ki8/+1UQ+U3WVAdfreQU936eS6iTh0 tE//2EzOpqpUEIW1sobE/XEaC7pXiGJC7EXzHM2ZAyqCjHsxy3QQxusIK2iJS5NTVwMh HRV3NxXt662jgeBzQ6WAPlPDr0jnjLwFMorRvjU98hP5MxiOHiOvJmbfrhz6oRUh6cuM hj8SzkrB3cZXCiJvmYi1qvNSXno4MDPtsKAVtUaHMtMl7yzjQb2GIV/WjGdlAlQ0xkvL r0oTtr30js1N1ghPsYu5r42vv0i/uey3p6vkNhTV8OGN5Sy7e1x2zJkdllwlWPpUci9V bGmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j14-20020a170906278e00b0092522118ef4si6099800ejc.949.2023.03.15.17.32.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 17:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 87AE8385B50D for ; Thu, 16 Mar 2023 00:32:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from hamza.pair.com (hamza.pair.com [209.68.5.143]) by sourceware.org (Postfix) with ESMTPS id 544AA3858D38 for ; Thu, 16 Mar 2023 00:32:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 544AA3858D38 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pfeifer.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=pfeifer.com Received: from hamza.pair.com (localhost [127.0.0.1]) by hamza.pair.com (Postfix) with ESMTP id F054433E4F for ; Wed, 15 Mar 2023 20:32:11 -0400 (EDT) Received: from naga.localdomain (188-23-63-229.adsl.highway.telekom.at [188.23.63.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hamza.pair.com (Postfix) with ESMTPSA id 8E6FC33E4D for ; Wed, 15 Mar 2023 20:32:11 -0400 (EDT) Date: Thu, 16 Mar 2023 01:32:09 +0100 (CET) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org Subject: [pushed] maintainer-scripts: Abstract BUGURL in update_web_docs_git MIME-Version: 1.0 X-Scanned-By: mailmunge 3.11 on 209.68.5.143 Message-Id: <20230316003211.F054433E4F@hamza.pair.com> X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE, SPF_PASS, TXREP 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760482308984737402?= X-GMAIL-MSGID: =?utf-8?q?1760482308984737402?= The URL where to report bugs is hard coded in two places; abstract that into one variable, defined up front. maintainer-scripts/ChangeLog: * update_web_docs_git (BUGURL): Introduce and use throughout. --- maintainer-scripts/update_web_docs_git | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maintainer-scripts/update_web_docs_git b/maintainer-scripts/update_web_docs_git index dee9b1d3b5e..1c6a993cafd 100755 --- a/maintainer-scripts/update_web_docs_git +++ b/maintainer-scripts/update_web_docs_git @@ -33,6 +33,7 @@ MANUALS="cpp libiberty porting" +BUGURL="http://gcc.gnu.org/bugs/" CSS=/gcc.css WWWBASE=${WWWBASE:-"/www/gcc/htdocs"} @@ -154,11 +155,11 @@ includedir=gcc/gcc/doc/include fi echo "@set srcdir $WORKDIR/gcc/gcc" echo "@set VERSION_PACKAGE (GCC)" - echo "@set BUGURL @uref{http://gcc.gnu.org/bugs/}" + echo "@set BUGURL @uref{$BUGURL}" ) > $includedir/gcc-vers.texi # Generate libquadmath-vers.texi. -echo "@set BUGURL @uref{http://gcc.gnu.org/bugs/}" \ +echo "@set BUGURL @uref{$BUGURL}" \ > $includedir/libquadmath-vers.texi # Now convert the relevant files from texi to HTML, PDF and PostScript.