add armelf sanitization
authorIan Lance Taylor <ian@airs.com>
Mon, 10 Aug 1998 20:30:33 +0000 (20:30 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 10 Aug 1998 20:30:33 +0000 (20:30 +0000)
.Sanitize

index a41d1827b3516de513fbb5d545376e524c0c6046..0baba7cdd4f76d41b2bc809744d7a0f717687ad3 100644 (file)
--- a/.Sanitize
+++ b/.Sanitize
@@ -631,6 +631,34 @@ else
        done
 fi
 
+armelf_files="ChangeLog configure.in"
+if ( echo $* | grep keep\-armelf > /dev/null ) ; then
+       for i in $armelf_files ; do
+               if test ! -d $i && (grep sanitize-armelf $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping armelf stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-armelf $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"armelf\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-armelf/,/end-\sanitize\-armelf/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
+
 java_files="ChangeLog Makefile.in configure.in"
 if ( echo $* | grep keep\-java > /dev/null ) ; then
        for i in $java_files ; do