1 # .Sanitize for devo/gas.
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 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
106 arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1"
107 if ( echo $* | grep keep\-arc > /dev/null ) ; then
108 for i in $arc_files ; do
109 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
110 if [ -n "${verbose}" ] ; then
111 echo Keeping arc stuff in $i
116 for i in $arc_files ; do
117 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
118 if [ -n "${verbose}" ] ; then
119 echo Removing traces of \"arc\" from $i...
122 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
123 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
124 if [ -n "${verbose}" ] ; then
125 echo Caching $i in .Recover...
134 if ( echo $* | grep keep\-gm > /dev/null ) ; then
136 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
137 if [ -n "${verbose}" ] ; then
138 echo Keeping gm stuff in $i
144 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
145 if [ -n "${verbose}" ] ; then
146 echo Removing traces of \"gm\" from $i...
149 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
150 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
151 if [ -n "${verbose}" ] ; then
152 echo Caching $i in .Recover...
162 d10v_files="ChangeLog configure.in configure Makefile.in"
163 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
164 for i in $d10v_files ; do
165 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
166 if [ -n "${verbose}" ] ; then
167 echo Keeping d10v stuff in $i
172 for i in $d10v_files ; do
173 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
174 if [ -n "${verbose}" ] ; then
175 echo Removing traces of \"d10v\" from $i...
178 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
179 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
180 if [ -n "${verbose}" ] ; then
181 echo Caching $i in .Recover...
190 v850_files="ChangeLog configure.in configure Makefile.in write.c"
191 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
192 for i in $v850_files ; do
193 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
194 if [ -n "${verbose}" ] ; then
195 echo Keeping v850 stuff in $i
200 for i in $v850_files ; do
201 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
202 if [ -n "${verbose}" ] ; then
203 echo Removing traces of \"v850\" from $i...
206 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
207 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
208 if [ -n "${verbose}" ] ; then
209 echo Caching $i in .Recover...
218 tic80_files="ChangeLog configure.in configure"
219 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
220 for i in $tic80_files ; do
221 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
222 if [ -n "${verbose}" ] ; then
223 echo Keeping tic80 stuff in $i
228 for i in $tic80_files ; do
229 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
230 if [ -n "${verbose}" ] ; then
231 echo Removing traces of \"tic80\" from $i...
234 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
235 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
236 if [ -n "${verbose}" ] ; then
237 echo Caching $i in .Recover...
247 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
248 echo '***' Some mentions of Sanitize are still left in $i! 1>&2