# Sanitize.in for devo.
-# $Id$
#
# Each directory to survive it's way into a release will need a file
Do-first:
-echo Sanitizing `pwd`...
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
Things-to-keep:
ChangeLog
+Makefile.dos
Makefile.in
+NEWS
+README
TODO
alloca.c
+am29k-pinsn.c
+ar.1
ar.c
-is-ranlib.c
-not-ranlib.c
-maybe-ranlib.c
-binutils.texinfo
+arlex.l
+arparse.y
+arsup.c
+arsup.h
+binutils.texi
bucomm.c
+bucomm.h
+configure.bat
configure.in
+config
copy.c
-cplus-dem.c
filemode.c
gmalloc.c
-am29k-pinsn.c
+i386-pinsn.c
i960-pinsn.c
+is-ranlib.c
+is-strip.c
m68k-pinsn.c
+maybe-ranlib.c
+maybe-strip.c
+nm.1
nm.c
+not-ranlib.c
+not-strip.c
+objdump.1
objdump.c
-ostrip.c
+objdump.h
+ranlib.1
ranlib.sh
+sanity.sh
+size.1
size.c
sparc-pinsn.c
-strip.c
+strip.1
version.c
Do-last:
-echo Done in `pwd`.
-
-#
-#
-# $Log$
-# Revision 1.7 1991/10/10 11:59:09 rich
-# updating
-#
-# Revision 1.6 1991/10/08 01:50:59 gnu
-# Remove configure and config.sub from the expected list.
-#
-# Revision 1.5 1991/10/08 01:48:04 gnu
-# Add binutils.texinfo, and change *-ranlib.o to *-ranlib.c.
-#
-# Revision 1.4 1991/10/07 23:14:30 bothner
-# * ar.c, Makefile.in, new files {is,not,maybe}-ranlib.c:
-# Make two different binaries for ar and ranlib, instead of
-# distinguishing them at run time using argv[0].
-# (Old behavior is still available if you "make ar_with_ranlib",
-# but it is not the default.)
-# * ranlib.sh (new): An alternative one-line
-# shell implementation of ranlib.
-#
-# Revision 1.3 1991/09/01 03:47:07 steve
-# Added config.sub
-#
-# Revision 1.2 1991/07/15 23:38:04 steve
-# *** empty log message ***
-#
-# Revision 1.1 1991/05/23 21:49:14 rich
-# Initial revision
-#
-#
-#
+v9dirty="sparc-pinsn.c"
-# End of file.
+if ( echo $* | grep keep\-v9 > /dev/null ) ; then
+ echo Keeping v9 in ${v9dirty}
+else
+ for i in ${v9dirty} ; do
+ echo Sanitizing v9 in $i
+ rm -f new
+ sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
+ if grep -s -i v9 new ; then
+ echo ***** SANITIZING V9 IN $i FAILED *****\a\a
+ fi
+ if [ -n "${safe}" ] ; then
+ mv $i .Recover
+ else
+ rm $i
+ fi
+ mv new $i
+ done
+fi