1 # Each directory to survive it's way into a release will need a file
2 # like this one called "./.Sanitize". All keyword lines must exist,
3 # and must exist in the order specified by this file. Each directory
4 # in the tree will be processed, top down, in the following order.
6 # Hash started lines like this one are comments and will be deleted
7 # before anything else is done. Blank lines will also be squashed
10 # The lines between the "Do-first:" line and the "Things-to-keep:"
11 # line are executed as a /bin/sh shell script before anything else is
16 # All files listed between the "Things-to-keep:" line and the
17 # "Files-to-sed:" line will be kept. All other files will be removed.
18 # Directories listed in this section will have their own Sanitize
19 # called. Directories not listed will be removed in their entirety
137 echo Stimulating away the simulator...
139 if ( echo $* | grep keep\-sim > /dev/null ) ; then
140 echo Keeping simulator in h8300hms.mt
142 for i in h8300hms.mt z8ksim.mt; do
144 echo Tickling the \"sim\" out of $i...
145 sed -e 's| remote-sim.o .*||' \
146 -e 's| and H8 simulator||' \
147 -e 's| Z8000 simulator| Z8000|' \
148 -e 's| remote-z8k.o ../sim/z8k/libsim.a||' \
150 if grep sim new ; then
151 echo '***' Not funny. "Didn't work."
153 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
154 echo Caching $i in .Recover...