-# .Sanitize for devo/ld.
+# .Sanitize for devo/ld
# Each directory to survive its way into a release will need a file
# like this one called "./.Sanitize". All keyword lines must exist,
Do-first:
+
# All files listed between the "Things-to-keep:" line and the
-# "Files-to-sed:" line will be kept. All other files will be removed.
+# "Do-last:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
# called. Directories not listed will be removed in their entirety
# with rm -rf.
README
TODO
acconfig.h
-aclocal.m4
acinclude.m4
+aclocal.m4
config.in
configure
configure.bat
dep-in.sed
emulparams
emultempl
+gen-doc.texi
genscripts.sh
h8-doc.texi
ld.1
-gen-doc.texi
ld.h
ld.texinfo
ldcref.c
mac-ld.r
mpw-config.in
mpw-elfmips.c
-mpw-idtmips.c
mpw-eppcmac.c
mpw-esh.c
+mpw-idtmips.c
mpw-make.sed
mri.c
mri.h
+po
scripttempl
stamp-h.in
sysdep.h
Things-to-lose:
+
+
+# The lines between the "Do-last:" line and the end of the file
+# are executed as a /bin/sh shell script after everything else is
+# done.
+
Do-last:
v850_files="ChangeLog configure.tgt Makefile.am Makefile.in"
-
if ( echo $* | grep keep\-v850e > /dev/null ) ; then
for i in $v850_files ; do
if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
fi
tx49_files="ChangeLog configure.tgt"
-
if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
for i in $tx49_files ; do
if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
fi
r5900_files="ChangeLog configure.tgt Makefile.in Makefile.am"
-
if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
for i in $r5900_files ; do
if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
done
fi
-tic80_files="ChangeLog configure.tgt Makefile.am Makefile.in"
+vr4320_files="ChangeLog configure.tgt"
+if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
+ for i in $vr4320_files ; do
+ if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping vr4320 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $vr4320_files ; do
+ if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"vr4320\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+tic80_files="ChangeLog configure.tgt Makefile.am Makefile.in"
if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
for i in $tic80_files ; do
if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
fi
d30v_files="ChangeLog configure.tgt Makefile.am Makefile.in"
-
if ( echo $* | grep keep\-d30v > /dev/null ) ; then
for i in $d30v_files ; do
if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
fi
sky_files="ChangeLog configure.tgt"
-
if ( echo $* | grep keep\-sky > /dev/null ) ; then
for i in $sky_files ; do
if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
fi
done
-#
-# End of file.
+# 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