From 3d96e9b4cf6119424d4e45cad1064b0982c1aa3f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 22 Apr 1998 22:40:45 +0000 Subject: [PATCH] .Sanitize now re-computes gettext-related files --- bfd/.Sanitize | 23 +++++++++++++++++++++++ binutils/.Sanitize | 23 +++++++++++++++++++++++ gas/.Sanitize | 23 +++++++++++++++++++++++ gprof/.Sanitize | 23 +++++++++++++++++++++++ ld/.Sanitize | 22 ++++++++++++++++++++++ 5 files changed, 114 insertions(+) diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 300aad51514..cc041872a4a 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 diff --git a/binutils/.Sanitize b/binutils/.Sanitize index 8fa3df8ac71..eac10d5fcec 100644 --- a/binutils/.Sanitize +++ b/binutils/.Sanitize @@ -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 +xgettext `cat po/POTFILES.in` -o po/binutils.pot + + # eof diff --git a/gas/.Sanitize b/gas/.Sanitize index c7788c6255d..4760fad1805 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 diff --git a/gprof/.Sanitize b/gprof/.Sanitize index 14f72bd5de8..8dd15e503dd 100644 --- a/gprof/.Sanitize +++ b/gprof/.Sanitize @@ -97,4 +97,27 @@ make_solaris_order_map 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/gprof.pot ]; then + if [ -n "${verbose}" ]; then + echo Caching po/gprof.pot in .Recover... + fi + mv po/gprof.pot po/.Recover +fi +xgettext `cat po/POTFILES.in` -o po/gprof.pot + + # eof diff --git a/ld/.Sanitize b/ld/.Sanitize index 322888c9145..b3deef464c8 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 -- 2.30.2