1 # Sanitize.in for devo.
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize". All keyword lines must exist,
7 # and must exist in the order specified by this file. Each directory
8 # in the tree will be processed, top down, in the following order.
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done. Blank lines will also be squashed
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
20 h8s_files="addsubs.s bitops1s.s bitops2s.s bitops3s.s bitops4s.s branchs.s cbranchs.s compares.s decimals.s divmuls.s extends.s incdecs.s logicals.s macs.s miscs.s movbs.s movls.s movws.s multiples.s pushpops.s rotshs.s"
22 if ( echo $* | grep keep\-h8s > /dev/null ) ; then
23 keep_these_too="${h8s_files} ${keep_these_too}"
25 lose_these_too="${h8s_files} ${lose_these_too}"
28 # All files listed between the "Things-to-keep:" line and the
29 # "Files-to-sed:" line will be kept. All other files will be removed.
30 # Directories listed in this section will have their own Sanitize
31 # called. Directories not listed will be removed in their entirety
82 if [ -n "${verbose}" ] ; then
83 echo Processing \"h8s\"...
87 if ( echo $* | grep keep\-h8s > /dev/null ) ; then
88 for i in $h8s_files ; do
89 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
90 if [ -n "${verbose}" ] ; then
91 echo Keeping h8s stuff in $i
96 for i in $h8s_files ; do
97 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
98 if [ -n "${verbose}" ] ; then
99 echo Removing traces of \"h8s\" from $i...
102 sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
103 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
104 if [ -n "${verbose}" ] ; then
105 echo Caching $i in .Recover...