1 # .Sanitize for devo/opcodes.
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.
18 arc_files="arc-dis.c arc-opc.c"
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
23 lose_these_too="${arc_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
80 arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
81 if ( echo $* | grep keep\-arc > /dev/null ) ; then
82 for i in $arc_files ; do
83 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
84 if [ -n "${verbose}" ] ; then
85 echo Keeping arc stuff in $i
90 for i in $arc_files ; do
91 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
92 if [ -n "${verbose}" ] ; then
93 echo Removing traces of \"arc\" from $i...
96 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
97 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
98 if [ -n "${verbose}" ] ; then
99 echo Caching $i in .Recover...
108 h8s_files="ChangeLog disassemble.c h8300-dis.c"
109 if ( echo $* | grep keep\-h8s > /dev/null ) ; then
110 for i in $h8s_files ; do
111 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
112 if [ -n "${verbose}" ] ; then
113 echo Keeping h8s stuff in $i
118 for i in $h8s_files ; do
119 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
120 if [ -n "${verbose}" ] ; then
121 echo Removing traces of \"h8s\" from $i...
124 sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
125 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
126 if [ -n "${verbose}" ] ; then
127 echo Caching $i in .Recover...
137 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
138 echo '***' Some mentions of Sanitize are still left in $i! 1>&2