1 # .Sanitize for devo/gas/config
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.
19 lose_these_too="vms ${lose_these_too}"
22 tic80_files="tc-tic80.c tc-tic80.h"
24 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
25 keep_these_too="${tic80_files} ${keep_these_too}"
27 lose_these_too="${tic80_files} ${lose_these_too}"
30 sky_files="tc-dvp.c tc-dvp.h"
32 if ( echo $* | grep keep\-sky > /dev/null ) ; then
33 keep_these_too="${sky_files} ${keep_these_too}"
35 lose_these_too="${sky_files} ${lose_these_too}"
38 # All files listed between the "Things-to-keep:" line and the
39 # "Do-last:" line will be kept. All other files will be removed.
40 # Directories listed in this section will have their own Sanitize
41 # called. Directories not listed will be removed in their entirety
179 # The lines between the "Do-last:" line and the end of the file
180 # are executed as a /bin/sh shell script after everything else is
185 r5900_files="tc-mips.c"
186 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
187 for i in $r5900_files ; do
188 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
189 if [ -n "${verbose}" ] ; then
190 echo Keeping r5900 stuff in $i
196 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
197 if [ -n "${verbose}" ] ; then
198 echo Removing traces of \"r5900\" from $i...
201 sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
202 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
203 if [ -n "${verbose}" ] ; then
204 echo Caching $i in .Recover...
213 cygnus_files="tc-mips.c tc-hppa.c tc-mn10300.c tc-m32r.c tc-m32r.h"
214 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
215 for i in $cygnus_files ; do
216 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
217 if [ -n "${verbose}" ] ; then
218 echo Keeping cygnus stuff in $i
224 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
225 if [ -n "${verbose}" ] ; then
226 echo Removing traces of \"cygnus\" from $i...
229 sed '/start\-sanitize\-cygnus/,/end\-sanitize\-cygnus/d' < $i > new
230 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
231 if [ -n "${verbose}" ] ; then
232 echo Caching $i in .Recover...
242 tx19_files="tc-mips.c"
243 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
244 for i in $tx19_files ; do
245 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
246 if [ -n "${verbose}" ] ; then
247 echo Keeping tx19 stuff in $i
253 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
254 if [ -n "${verbose}" ] ; then
255 echo Removing traces of \"tx19\" from $i...
258 sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/d' < $i > new
259 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
260 if [ -n "${verbose}" ] ; then
261 echo Caching $i in .Recover...
270 tx49_files="ChangeLog tc-mips.c"
271 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
272 for i in $tx49_files ; do
273 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
274 if [ -n "${verbose}" ] ; then
275 echo Keeping tx49 stuff in $i
281 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
282 if [ -n "${verbose}" ] ; then
283 echo Removing traces of \"tx49\" from $i...
286 sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/d' < $i > new
287 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
288 if [ -n "${verbose}" ] ; then
289 echo Caching $i in .Recover...
298 tic80_files="obj-coff.h"
299 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
300 for i in $tic80_files ; do
301 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
302 if [ -n "${verbose}" ] ; then
303 echo Keeping tic80 stuff in $i
309 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
310 if [ -n "${verbose}" ] ; then
311 echo Removing traces of \"tic80\" from $i...
314 sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
315 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
316 if [ -n "${verbose}" ] ; then
317 echo Caching $i in .Recover...
326 vr4xxx_files="tc-mips.c"
327 if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
328 for i in $vr4xxx_files ; do
329 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
330 if [ -n "${verbose}" ] ; then
331 echo Keeping vr4xxx stuff in $i
336 for i in $vr4xxx_files ; do
337 if test -r $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
338 if [ -n "${verbose}" ] ; then
339 echo Removing traces of \"vr4xxx\" from $i...
342 sed '/start\-sanitize\-vr4xxx/,/end\-sanitize\-vr4xxx/d' < $i > new
343 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
344 if [ -n "${verbose}" ] ; then
345 echo Caching $i in .Recover...
354 vr4320_files="tc-mips.c"
355 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
356 for i in $vr4320_files ; do
357 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
358 if [ -n "${verbose}" ] ; then
359 echo Keeping vr4320 stuff in $i
364 for i in $vr4320_files ; do
365 if test -r $i && (grep sanitize-vr4320 $i > /dev/null) ; then
366 if [ -n "${verbose}" ] ; then
367 echo Removing traces of \"vr4320\" from $i...
370 sed '/start\-sanitize\-vr4320/,/end\-sanitize\-vr4320/d' < $i > new
371 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
372 if [ -n "${verbose}" ] ; then
373 echo Caching $i in .Recover...
382 branchbug4011_files="tc-mips.c"
383 if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then
384 for i in $branchbug4011_files ; do
385 if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
386 if [ -n "${verbose}" ] ; then
387 echo Keeping branchbug4011 stuff in $i
392 for i in $branchbug4011_files ; do
393 if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
394 if [ -n "${verbose}" ] ; then
395 echo Removing traces of \"branchbug4011\" from $i...
398 sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/d' < $i > new
399 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
400 if [ -n "${verbose}" ] ; then
401 echo Caching $i in .Recover...
411 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
412 echo '***' Some mentions of Sanitize are still left in gas/config/$i! 1>&2