]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix an error message when gettextize if run with option -n.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Dec 2016 12:17:59 +0000 (13:17 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Dec 2016 12:25:18 +0000 (13:25 +0100)
* gettext-tools/misc/gettextize.in: Consider the Makevars.template file at the
location where it is installed, not in $srcdir.

gettext-tools/misc/gettextize.in

index 63d5bb718325e71ce164b8ac7b114b86daa2dca2..05646197380c0f85e0ffe9b96fbf89cd634ec6b9 100644 (file)
@@ -758,7 +758,7 @@ for podir in $podirs; do
         func_linkorcopy Makevars.template "$gettext_datadir/po/Makevars.template" "$podir/Makevars.template"
         if test -f "$srcdir/po/Makevars"; then
           LC_ALL=C sed -n -e 's/[      ]*\([A-Za-z0-9_]*\)[    ]*=.*/\1/p' < "$srcdir/$podir/Makevars" | LC_ALL=C sort > "$srcdir/$podir/Makevars.tmp1"
-          LC_ALL=C sed -n -e 's/[      ]*\([A-Za-z0-9_]*\)[    ]*=.*/\1/p' < "$srcdir/$podir/Makevars.template" | LC_ALL=C sort > "$srcdir/$podir/Makevars.tmp2"
+          LC_ALL=C sed -n -e 's/[      ]*\([A-Za-z0-9_]*\)[    ]*=.*/\1/p' < "$gettext_datadir/po/Makevars.template" | LC_ALL=C sort > "$srcdir/$podir/Makevars.tmp2"
           missingvars=`LC_ALL=C comm -13 "$srcdir/$podir/Makevars.tmp1" "$srcdir/$podir/Makevars.tmp2"`
           rm -f "$srcdir/$podir/Makevars.tmp1" "$srcdir/$podir/Makevars.tmp2"
           if test -n "$missingvars"; then