aboutsummaryrefslogtreecommitdiff
path: root/gcc/po/exgettext
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2004-11-09 21:57:17 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2004-11-09 21:57:17 +0000
commitc043fab83a49ede3d4be62a6cb99d488957e739f (patch)
tree2ecc7c05d71018c1524ec95b66a0ce0227a45065 /gcc/po/exgettext
parent8b17a9d698ae32a281cb05521b5d3e3ef0ec6c0b (diff)
downloadgcc-c043fab83a49ede3d4be62a6cb99d488957e739f.zip
gcc-c043fab83a49ede3d4be62a6cb99d488957e739f.tar.gz
gcc-c043fab83a49ede3d4be62a6cb99d488957e739f.tar.bz2
* exgettext: Remove local srcdir and objdir paths from gcc.pot.
From-SVN: r90367
Diffstat (limited to 'gcc/po/exgettext')
-rw-r--r--gcc/po/exgettext5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/po/exgettext b/gcc/po/exgettext
index 691dad9..0aa22ef 100644
--- a/gcc/po/exgettext
+++ b/gcc/po/exgettext
@@ -167,4 +167,7 @@ $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" \
- --language=c -o po/$package.pot
+ --language=c -o po/$package.pot.tmp
+# Remove local paths from .pot file.
+sed "s:$srcdir/::g;s:$pwd/::g;" <po/$package.pot.tmp >po/$package.pot
+rm po/$package.pot.tmp