1 # Sanitize.in for sim/m32r
4 # Each directory to survive it's way into a release will need a file
5 # like this one called "./.Sanitize". All keyword lines must exist,
6 # and must exist in the order specified by this file. Each directory
7 # in the tree will be processed, top down, in the following order.
9 # Hash started lines like this one are comments and will be deleted
10 # before anything else is done. Blank lines will also be squashed
13 # The lines between the "Do-first:" line and the "Things-to-keep:"
14 # line are executed as a /bin/sh shell script before anything else is
19 m32rx_files="cpux.c cpux.h decodex.c decodex.h m32rx.c mloopx.in modelx.c semx-switch.c"
20 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
21 keep_these_too="${m32rx_files} ${keep_these_too}"
23 lose_these_too="${m32rx_files} ${lose_these_too}"
26 # All files listed between the "Things-to-keep:" line and the
27 # "Files-to-sed:" line will be kept. All other files will be removed.
28 # Directories listed in this section will have their own Sanitize
29 # called. Directories not listed will be removed in their entirety
65 cygnus_files="ChangeLog Makefile.in"
66 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
67 for i in $cygnus_files ; do
68 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
69 if [ -n "${verbose}" ] ; then
70 echo Keeping cygnus stuff in $i
75 for i in $cygnus_files ; do
76 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
77 if [ -n "${verbose}" ] ; then
78 echo Removing traces of \"cygnus\" from $i...
81 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
82 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
83 if [ -n "${verbose}" ] ; then
84 echo Caching $i in .Recover...
93 m32rx_files="ChangeLog Makefile.in sim-if.c sim-main.h arch.h arch.c cpuall.h cpu.h m32r-sim.h tconfig.in"
94 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
95 for i in $m32rx_files ; do
96 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
97 if [ -n "${verbose}" ] ; then
98 echo Keeping m32rx stuff in $i
103 for i in $m32rx_files ; do
104 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
105 if [ -n "${verbose}" ] ; then
106 echo Removing traces of \"m32rx\" from $i...
109 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
110 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
111 if [ -n "${verbose}" ] ; then
112 echo Caching $i in .Recover...