1 # .Sanitize for devo/gprof
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
92 make_solaris_order_map
94 # The lines between the "Do-last:" line and the end of the file
95 # are executed as a /bin/sh shell script after everything else is
100 # This must come after all other sanitizations. Re-sanitize the .pot
102 if [ -n "${verbose}" ]; then
103 echo Re-computing files for gettext ...
106 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
107 if [ -n "${verbose}" ]; then
108 echo Caching po/POTFILES.in in .Recover...
110 mv po/POTFILES.in po/.Recover
112 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
114 if [ -n "${safe}" -a ! -f po/.Recover/gprof.pot ]; then
115 if [ -n "${verbose}" ]; then
116 echo Caching po/gprof.pot in .Recover...
118 mv po/gprof.pot po/.Recover
120 # If this fails, Sanitization must fail.
121 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/gprof.pot || exit 1