Rebuilt again!
[deliverable/binutils-gdb.git] / binutils / .Sanitize
index 8fa3df8ac71b8ed03d6c56bc86b7b7b1905754a5..244f8b444104c4044aaa5d4e141e9a5ff6da9e13 100644 (file)
@@ -122,4 +122,27 @@ Things-to-lose:
 
 Do-last:
 
+# 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/binutils.pot ]; then
+   if [ -n "${verbose}" ]; then
+      echo Caching po/binutils.pot in .Recover...
+   fi
+   mv po/binutils.pot po/.Recover
+fi
+# If this fails, Sanitization must fail.
+xgettext `cat po/POTFILES.in` -o po/binutils.pot || exit 1
+
 # eof
This page took 0.023203 seconds and 4 git commands to generate.