public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pushed] maintainer-scripts: Abstract BUGURL in update_web_docs_git
@ 2023-03-16  0:32 Gerald Pfeifer
  0 siblings, 0 replies; only message in thread
From: Gerald Pfeifer @ 2023-03-16  0:32 UTC (permalink / raw)
  To: 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.
-- 
2.39.2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-16  0:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16  0:32 [pushed] maintainer-scripts: Abstract BUGURL in update_web_docs_git Gerald Pfeifer

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).