From 3d96e9b4cf6119424d4e45cad1064b0982c1aa3f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 22 Apr 1998 22:40:45 +0000 Subject: .Sanitize now re-computes gettext-related files --- bfd/.Sanitize | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'bfd') diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 300aad5..cc04187 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -614,4 +614,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/bfd.pot ]; then + if [ -n "${verbose}" ]; then + echo Caching po/bfd.pot in .Recover... + fi + mv po/bfd.pot po/.Recover +fi +xgettext `cat po/POTFILES.in` -o po/bfd.pot + # eof -- cgit v1.1