aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1998-04-22 22:40:45 +0000
committerTom Tromey <tromey@redhat.com>1998-04-22 22:40:45 +0000
commit3d96e9b4cf6119424d4e45cad1064b0982c1aa3f (patch)
treecb440b09eb44c90cf2e47c5613ba10abb0a62e7d /ld
parent1158ffaf2a82c3e742e870006b74e0084902175c (diff)
downloadgdb-3d96e9b4cf6119424d4e45cad1064b0982c1aa3f.zip
gdb-3d96e9b4cf6119424d4e45cad1064b0982c1aa3f.tar.gz
gdb-3d96e9b4cf6119424d4e45cad1064b0982c1aa3f.tar.bz2
.Sanitize now re-computes gettext-related files
Diffstat (limited to 'ld')
-rw-r--r--ld/.Sanitize22
1 files changed, 22 insertions, 0 deletions
diff --git a/ld/.Sanitize b/ld/.Sanitize
index 322888c..b3deef46 100644
--- a/ld/.Sanitize
+++ b/ld/.Sanitize
@@ -299,4 +299,26 @@ for i in * ; do
fi
done
+# This must come after all other sanitizations. Re-sanitize the .pot
+# file.
+if [ -n "${verbose}" ]; then
+ echo Re-computing files for gettext ...
+fi
+
+if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
+ if [ -n "${verbose}" ]; then
+ echo Caching po/POTFILES.in in .Recover...
+ fi
+ mv po/POTFILES.in po/.Recover
+fi
+find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
+
+if [ -n "${safe}" -a ! -f po/.Recover/ld.pot ]; then
+ if [ -n "${verbose}" ]; then
+ echo Caching po/ld.pot in .Recover...
+ fi
+ mv po/ld.pot po/.Recover
+fi
+xgettext `cat po/POTFILES.in` -o po/ld.pot
+
# eof