* sim-base.h (sim_state_base): Move `magic' to end of struct.
[deliverable/binutils-gdb.git] / include / .Sanitize
index aab0e01801d771d210f516b278eace887e33193e..9aae187ad7e37ad568af47989d93bc3598627e10 100644 (file)
 
 Do-first:
 
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
-       keep_these_too="${keep_these_too} mpw"
-else
-       lose_these_too="${lose_these_too} mpw"
-fi
-
-if ( echo $* | grep keep\-hpread > /dev/null ) ; then
-       keep_these_too="${keep_these_too} hpux-symtab.h ChangeLog.hpread"
-else
-       lose_these_too="${lose_these_too} hpux-symtab.h ChangeLog.hpread"
-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.
@@ -41,22 +30,30 @@ ansidecl.h
 aout
 bfdlink.h
 bout.h
+callback.h
 coff
 demangle.h
 dis-asm.h
 elf
 floatformat.h
+fnmatch.h
 fopen-bin.h
 fopen-same.h
+fopen-vms.h
 gdbm.h
 getopt.h
+hp-symtab.h
 ieee.h
 libiberty.h
+mpw
 nlm
 oasys.h
+objalloc.h
 obstack.h
 os9k.h
 opcode
+progress.h
+remote-sim.h
 wait.h
 
 Things-to-lose:
@@ -64,4 +61,66 @@ Things-to-lose:
 
 Do-last:
 
+tic80_files="ChangeLog dis-asm.h"
+if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
+       for i in $tic80_files ; do
+               if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping tic80 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $tic80_files ; do
+               if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"tic80\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
+d30v_files="ChangeLog dis-asm.h"
+if ( echo $* | grep keep\-d30v > /dev/null ) ; then
+       for i in $d30v_files ; do
+               if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping d30v stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $d30v_files ; do
+               if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"d30v\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
+for i in * ; do
+       if test ! -d $i && (grep sanitize $i > /dev/null) ; then
+               echo '***' Some mentions of Sanitize are still left in $i! 1>&2
+       fi
+done
+
 # End of file.
This page took 0.024125 seconds and 4 git commands to generate.