From 77265d13c97fa16dc3260dc5d6774132c119f960 Mon Sep 17 00:00:00 2001 From: gerald Date: Thu, 16 Feb 2017 19:38:47 +0000 Subject: [PATCH] * exgettext (BUGURL): Introduce, and use instead of four hardcoded instances. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245513 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/po/ChangeLog | 5 +++++ gcc/po/exgettext | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/po/ChangeLog b/gcc/po/ChangeLog index 5dda71e9f31..08c64aa5586 100644 --- a/gcc/po/ChangeLog +++ b/gcc/po/ChangeLog @@ -1,3 +1,8 @@ +2017-02-16 Gerald Pfeifer + + * exgettext (BUGURL): Introduce, and use instead of four + hardcoded instances. + 2017-02-15 Joseph Myers * es.po: Update. diff --git a/gcc/po/exgettext b/gcc/po/exgettext index 2fad7003d03..65bd20555d4 100644 --- a/gcc/po/exgettext +++ b/gcc/po/exgettext @@ -21,6 +21,8 @@ # along with GCC; see the file COPYING3. If not see # . +BUGURL="https://gcc.gnu.org/bugs/" + # Always operate in the C locale. LANG=C LANGUAGE=C @@ -293,13 +295,13 @@ echo "running xgettext..." >&2 $xgettext --default-domain=$package --directory=$srcdir \ --add-comments `cat $kopt` --files-from=$posr \ --copyright-holder="Free Software Foundation, Inc." \ - --msgid-bugs-address="http://gcc.gnu.org/bugs.html" \ + --msgid-bugs-address="$BUGURL" \ --language=c -o $pottmp1 if test -s $posrcxx; then $xgettext --default-domain=$package --directory=$srcdir \ --add-comments `cat $kopt` --files-from=$posrcxx \ --copyright-holder="Free Software Foundation, Inc." \ - --msgid-bugs-address="http://gcc.gnu.org/bugs.html" \ + --msgid-bugs-address="$BUGURL" \ --language=c++ -o $pottmp2 else echo > $pottmp2 @@ -307,12 +309,12 @@ fi $xgettext --default-domain=$package --directory=$srcdir \ --add-comments --keyword= `cat $kopt2` --files-from=$posr \ --copyright-holder="Free Software Foundation, Inc." \ - --msgid-bugs-address="http://gcc.gnu.org/bugs.html" \ + --msgid-bugs-address="$BUGURL" \ --language=GCC-source -o $pottmp3 $xgettext --default-domain=$package \ --add-comments $pottmp1 $pottmp2 $pottmp3 \ --copyright-holder="Free Software Foundation, Inc." \ - --msgid-bugs-address="http://gcc.gnu.org/bugs.html" \ + --msgid-bugs-address="$BUGURL" \ --language=PO -o $pottmp # Remove local paths from .pot file. sed "s:$srcdir/::g;s:$pwd/::g;" <$pottmp >po/$package.pot -- 2.11.4.GIT