1 # .Sanitize for devo/binutils
3 # Each directory to survive its way into a release will need a file
4 # like this one called "./.Sanitize". All keyword lines must exist,
5 # and must exist in the order specified by this file. Each directory
6 # in the tree will be processed, top down, in the following order.
8 # Hash started lines like this one are comments and will be deleted
9 # before anything else is done. Blank lines will also be squashed
12 # The lines between the "Do-first:" line and the "Things-to-keep:"
13 # line are executed as a /bin/sh shell script before anything else is
14 # done in this directory.
19 # All files listed between the "Things-to-keep:" line and the
20 # "Do-last:" line will be kept. All other files will be removed.
21 # Directories listed in this section will have their own Sanitize
22 # called. Directories not listed will be removed in their entirety
119 # The lines between the "Do-last:" line and the end of the file
120 # are executed as a /bin/sh shell script after everything else is
125 # This must come after all other sanitizations. Re-sanitize the .pot
127 if [ -n "${verbose}" ]; then
128 echo Re-computing files for gettext ...
131 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
132 if [ -n "${verbose}" ]; then
133 echo Caching po/POTFILES.in in .Recover...
135 mv po/POTFILES.in po/.Recover
137 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
139 if [ -n "${safe}" -a ! -f po/.Recover/binutils.pot ]; then
140 if [ -n "${verbose}" ]; then
141 echo Caching po/binutils.pot in .Recover...
143 mv po/binutils.pot po/.Recover
145 # If this fails, Sanitization must fail.
146 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/binutils.pot || exit 1