# Sanitize.in for devo.
# $Id$
#

# Each directory to survive it's 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.

# Hash started lines like this one are comments and will be deleted
# before anything else is done.  Blank lines will also be squashed
# out.

# 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 

Do-first:

if ( echo $* | grep keep\-arc > /dev/null ) ; then
	keep_these_too="arc ${keep_these_too}"
else
	lose_these_too="arc ${lose_these_too}"
fi

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\-v850 > /dev/null ) ; then
	keep_these_too="v850 ${keep_these_too}"
else
	lose_these_too="v850 ${lose_these_too}"
fi

if ( echo $* | grep keep\-d30v > /dev/null ) ; then
	keep_these_too="d30v ${keep_these_too}"
else
	lose_these_too="d30v ${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.
# 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
arm
h8300
hppa
i386
ieee-fp
m32r
m68k
m68k-coff
m88k
macros
mips
mn10200
mn10300
mri
sh
sparc
sparc-solaris
sun4
template
vax

Things-to-lose:

Do-last:

# End of file.
