]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - include/elf/.Sanitize
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / include / elf / .Sanitize
index a4ced8f3bdb104fc23bab5f0ce9868a481a4d6f9..f0324a51bf2c9c52e8af87c6bb97ffb27aa6e5ff 100644 (file)
@@ -1,6 +1,4 @@
-# Sanitize.in for devo.
-# $Id$
-#
+# Sanitize.in for devo/include/elf.
 
 # Each directory to survive it's way into a release will need a file
 # like this one called "./.Sanitize".  All keyword lines must exist,
@@ -25,42 +23,208 @@ Do-first:
 
 Things-to-keep:
 
-
 ChangeLog
+alpha.h
+arc.h
+arm.h
+arm-oabi.h
 common.h
+d10v.h
+d30v.h
 dwarf.h
+dwarf2.h
 external.h
+fr30.h
+hppa.h
+i386.h
 internal.h
+m32r.h
+m68k.h
+mips.h
+mn10200.h
+mn10300.h
+ppc.h
+reloc-macros.h
+sh.h
+sparc.h
+v850.h
+
+Things-to-lose:
 
 Do-last:
 
-v9dirty="common.h"
+sky_files="ChangeLog mips.h"
+if ( echo $* | grep keep\-sky > /dev/null ) ; then
+       for i in $sky_files ; do
+               if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping sky stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $sky_files ; do
+               if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"sky\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-sky/,/end\-sanitize\-sky/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
 
-if ( echo $* | egrep verbose > /dev/null ) ; then
-       verbose=true
+vr4320_files="mips.h"
+if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
+       for i in $vr4320_files ; do
+               if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping vr4320 stuff in $i
+                       fi
+               fi
+       done
 else
-       verbose=
+       for i in $vr4320_files ; do
+               if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"vr4320\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/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
 
-if ( echo $* | grep keep\-v9 > /dev/null ) ; then
-       if [ -n "${verbose}" ] ; then
-               echo Keeping v9 in ${v9dirty}
-       fi
+vr4xxx_files="ChangeLog mips.h"
+if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
+       for i in $vr4xxx_files ; do
+               if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping vr4xxx stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $vr4xxx_files ; do
+               if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"vr4xxx\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-vr4xxx/,/end-\sanitize\-vr4xxx/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
+
+tx49_files="mips.h"
+if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
+       for i in $tx49_files ; do
+               if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping tx49 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $tx49_files ; do
+               if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"tx49\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/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
+
+cygnus_files="mips.h mn10300.h ChangeLog m32r.h"
+if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
+       for i in $cygnus_files ; do
+               if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping cygnus stuff in $i
+                       fi
+               fi
+       done
 else
-       for i in ${v9dirty} ; do
-               if [ -n "${verbose}" ] ; then
-                       echo Sanitizing v9 in $i
+       for i in $cygnus_files ; do
+               if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"cygnus\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/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
-               rm -f new
-               grep -v v9 $i > new
-               if [ -n "${safe}" ] ; then
-                       mv $i .Recover
-               else
-                       rm $i
+       done
+fi
+
+r5900_files="mips.h ChangeLog"
+if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
+       for i in $r5900_files ; do
+               if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping r5900 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $r5900_files ; do
+               if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"r5900\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/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
-               mv new $i
        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.