From: Gerald Pfeifer <gerald@pfeifer.com>
To: gcc-patches@gcc.gnu.org
Subject: [pushed] maintainer-scripts: Abstract BUGURL in update_web_docs_git
Date: Thu, 16 Mar 2023 01:32:09 +0100 (CET) [thread overview]
Message-ID: <20230316003211.F054433E4F@hamza.pair.com> (raw)
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.
--
2.39.2
reply other threads:[~2023-03-16 0:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230316003211.F054433E4F@hamza.pair.com \
--to=gerald@pfeifer.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).