]> Git Repo - binutils.git/blobdiff - binutils/.Sanitize
removing excess verbosity
[binutils.git] / binutils / .Sanitize
index 62a7403b9f291f2ce9a19ad65425c5b6d5e53be9..749d8b8cbf324416292d5693b807648d431ee886 100644 (file)
@@ -1,5 +1,4 @@
 # Sanitize.in for devo.
-# $Id$
 #
 
 # Each directory to survive it's way into a release will need a file
@@ -17,7 +16,6 @@
 
 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.
@@ -28,67 +26,70 @@ echo Sanitizing `pwd`...
 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
This page took 0.026219 seconds and 4 git commands to generate.