1 # .Sanitize for devo/gdb.
3 # Each directory to survive it's 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
18 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
19 keep_these_too="sp64-tdep.c remote-sp64sim.c remote-sim.h"
22 # All files listed between the "Things-to-keep:" line and the
23 # "Files-to-sed:" line will be kept. All other files will be removed.
24 # Directories listed in this section will have their own Sanitize
25 # called. Directories not listed will be removed in their entirety
264 # Things which are explicitly *not* kept, for now.
265 # deblib/ - CVS won't let you blow away directories yet,
266 # so this is still around from when Stu checked
267 # it in, as part of Lucid support.
268 # energize - Part of Lucid support.
269 # energize-patches - Part of Lucid support.
270 # energize.c - Part of Lucid support.
271 # energize.h - Part of Lucid support.
272 # i386-nlmstub.c - i386 NLM stub, not yet distributable because
273 # it contains Novell proprietary code.
274 # infrun.hacked.c - An old version of infrun.c that had some
275 # wait_for_inferior improvements by gnu,
276 # which were never fully debugged.
277 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
278 # the FORTH console ROMs. We never got the paperwork
279 # straight, since Sun's lawyers messed with the
280 # FSF contract and RMS didn't accept the changes.
281 # Written at SunLabs.
282 # state.c - Not used at the moment, keep for reference (fnf)
283 # state.h - Not used at the moment, keep for reference (fnf)
284 # tests - Old test programs for GDB, pre-gdbtest and pre-
303 echo Looking for signs of \"v9\"...
305 # Don't try to clean directories here, as the 'mv' command will fail.
306 # Also, grep fails on NFS mounted directories.
307 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
309 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
310 echo Keeping v9 stuff in $i
315 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
316 echo Cleaning the \"v9\" out of $i...
318 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
319 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
320 echo Caching $i in .Recover...