# 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:

# 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:

Makefile.in
configure.in
all.texi
as.1
as.texinfo
h8.texi

Do-last:

shdirty="as.texinfo h8.texi all.texi"

if ( echo $* | grep keep\-sh > /dev/null ) ; then
	echo Keeping Hitachi SH in ${shdirty}
else
	for i in ${shdirty} ; do
		echo Sanitizing Hitachi SH in $i
		rm -f new
		sed '/start\-sanitize\-Hitachi\-SH/,/^end\-sanitize\-Hitachi\-SH/d' < $i > new
		if grep -s "[- ]SH" new ; then
			echo *****SANITIZING HITACHI SH IN $i FAILED*****
		fi
		if [ -n "${safe}" ] ; then
			mv $i .Recover
		else
			rm $i
		fi
		mv new $i
	done
fi
#
#
# $Log$
# Revision 1.12  1993/04/21 01:00:59  pesch
# adhere to "start-sanitize-FOO" and "end-sanitize-FOO" convention
#
# Revision 1.11  1993/04/15  23:55:45  pesch
# Add h8.texi to things-to-keep
#
# Revision 1.10  1993/04/15  23:06:08  pesch
# Arrange to clean out references to Hitachi SH.
#
# Revision 1.9  1993/04/08  03:12:53  pesch
# Converted to Texinfo conditionals; no longer need M4.
# Checked makeinfo output for "all" config; other old M4 configs now sanitized
# out, will be replaced by .texi configs as each config is tested.
#
# Revision 1.8  1993/03/02  17:57:05  raeburn
# ChangeLog is gone
#
# Revision 1.7  1993/02/13  10:12:26  zoo
# removing excess verbosity
#
# Revision 1.6  1992/12/08  09:39:03  raeburn
# as-m680x0.texinfo does not exist
#
# Revision 1.5  1992/11/19  19:48:43  sac
#     	z8000 documentation
# 	* Makefile.in, all.m4, as-all.texinfo as.texinfo: all modified
#
# Revision 1.4  1992/03/10  00:50:59  rich
# keep ChangeLog and as-all.texinfo
#
# Revision 1.3  1992/02/24  13:54:45  tiemann
# Keep Makefile.in and configure.in.  Don't keep Makefile.
#
# Revision 1.2  1992/02/21  09:08:37  rich
# don't keep *.dvi
#
# Revision 1.1  1992/02/14  00:28:22  pesch
# Might as well keep the contents of the gas/doc subdir, as well as the
# dir itself.
#

# End of file.
