1 # .Sanitize for devo/gdb.
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 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
19 keep_these_too="sp64-tdep.c"
21 lose_these_too="sp64-tdep.c"
24 mpw_files="mpw-config.in mpw-make.in ser-mac.c mac-xdep.c mac-defs.h macgdb.r ChangeLog.mpw"
26 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
27 keep_these_too="${mpw_files} ${keep_these_too}"
28 if [ -n "${verbose}" ] ; then
29 echo Keeping ${mpw_files}
32 lose_these_too="${mpw_files} ${lose_these_too}"
33 if [ -n "${verbose}" ] ; then
34 echo Deleting ${mpw_files}
38 gm_files="mpw-xconfig.in mpw-init.c ChangeLog.gm"
40 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
41 keep_these_too="${gm_files} ${keep_these_too}"
42 if [ -n "${verbose}" ] ; then
43 echo Keeping ${gm_files}
46 lose_these_too="${gm_files} ${lose_these_too}"
47 if [ -n "${verbose}" ] ; then
48 echo Deleting ${gm_files}
52 # All files listed between the "Things-to-keep:" line and the
53 # "Files-to-sed:" line will be kept. All other files will be removed.
54 # Directories listed in this section will have their own Sanitize
55 # called. Directories not listed will be removed in their entirety
321 # Things which are explicitly *not* kept, for now.
322 # deblib/ - CVS won't let you blow away directories yet,
323 # so this is still around from when Stu checked
324 # it in, as part of Lucid support.
325 # energize - Part of Lucid support.
326 # energize-patches - Part of Lucid support.
327 # energize.c - Part of Lucid support.
328 # energize.h - Part of Lucid support.
329 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
330 # the FORTH console ROMs. We never got the paperwork
331 # straight, since Sun's lawyers messed with the
332 # FSF contract and RMS didn't accept the changes.
333 # Written at SunLabs.
334 # state.c - Not used at the moment, keep for reference (fnf)
335 # state.h - Not used at the moment, keep for reference (fnf)
336 # tests - Old test programs for GDB, pre-gdbtest and pre-
353 echo Looking for signs of \"v9\"...
355 # Don't try to clean directories here, as the 'mv' command will fail.
356 # Also, grep fails on NFS mounted directories.
357 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
359 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
360 echo Keeping v9 stuff in $i
365 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
366 echo Cleaning the \"v9\" out of $i...
368 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
369 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
370 echo Caching $i in .Recover...
378 echo Removing traces of \"mpw\"...
380 # Don't try to clean directories here, as the 'mv' command will fail.
381 # Also, grep fails on NFS mounted directories.
382 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
384 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
385 echo Keeping mpw stuff in $i
390 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
391 echo Removing traces of \"mpw\" out of $i...
393 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
394 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
395 echo Caching $i in .Recover...