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: 66435 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B88FD385B519 for ; Thu, 16 Mar 2023 00:32:30 +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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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.