-# Sanitize.in for devo.
-# $Id$
-#
+# .Sanitize for devo/gas/testsuite/gas
-# Each directory to survive it's way into a release will need a file
+# Each directory to survive its way into a release will need a file
# like this one called "./.Sanitize". All keyword lines must exist,
# and must exist in the order specified by this file. Each directory
# in the tree will be processed, top down, in the following order.
# The lines between the "Do-first:" line and the "Things-to-keep:"
# line are executed as a /bin/sh shell script before anything else is
-# done in this
+# done in this directory.
Do-first:
+for d in gasp i386-bsd ieee.fp mn10x00 ; do
+ if [ -d $d ]; then
+ lose_these_too="$d ${lose_these_too}"
+ fi
+done
+
+if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
+ keep_these_too="tic80 ${keep_these_too}"
+else
+ lose_these_too="tic80 ${lose_these_too}"
+fi
+
+if ( echo $* | grep keep\-sky > /dev/null ) ; then
+ keep_these_too="dvp ${keep_these_too}"
+else
+ lose_these_too="dvp ${lose_these_too}"
+fi
# All files listed between the "Things-to-keep:" line and the
-# "Files-to-sed:" line will be kept. All other files will be removed.
+# "Do-last:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
# called. Directories not listed will be removed in their entirety
# with rm -rf.
Things-to-keep:
all
+alpha
+arc
+arm
+d30v
+fr30
+h8300
hppa
i386
-ieee.fp
+ieee-fp
+m32r
m68k
m68k-coff
+m88k
+macros
+mips
+mn10200
+mn10300
+mri
+ppc
+sh
+sparc
sparc-solaris
sun4
template
+v850
+vtable
+vax
Things-to-lose:
+# The lines between the "Do-last:" line and the end of the file
+# are executed as a /bin/sh shell script after everything else is
+# done.
+
Do-last:
-# End of file.
+# eof