diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/.Sanitize | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gas/.Sanitize b/gas/.Sanitize index c7788c6..4760fad 100644 --- a/gas/.Sanitize +++ b/gas/.Sanitize @@ -440,4 +440,27 @@ 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/gas.pot ]; then + if [ -n "${verbose}" ]; then + echo Caching po/gas.pot in .Recover... + fi + mv po/gas.pot po/.Recover +fi +xgettext `cat po/POTFILES.in` -o po/gas.pot + # eof |