adhere to "start-sanitize-FOO" and "end-sanitize-FOO" convention
[external/binutils.git] / gas / doc / .Sanitize
index 8cbb1bb..852ec77 100644 (file)
@@ -27,31 +27,51 @@ Things-to-keep:
 
 Makefile.in
 configure.in
-a29k-coff.m4
-a29k.m4
-all.m4
-as-all.texinfo
+all.texi
 as.1
 as.texinfo
-gen.m4
-h8.m4
-i80386.m4
-i960.m4
-m680x0.m4
-none.m4
-pretex.m4
-sparc.m4
-vax.m4
-vintage.m4
-z8000.m4
+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*****\a\a
+               fi
+               if [ -n "${safe}" ] ; then
+                       mv $i .Recover
+               else
+                       rm $i
+               fi
+               mv new $i
+       done
+fi
 #
 #
 # $Log$
-# Revision 1.8  1993/03/02 17:57:05  raeburn
+# 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