Sanitize away beos references.
authorJeff Law <law@redhat.com>
Wed, 29 Jul 1998 18:26:26 +0000 (18:26 +0000)
committerJeff Law <law@redhat.com>
Wed, 29 Jul 1998 18:26:26 +0000 (18:26 +0000)
include/coff/.Sanitize

index b806ae0..1181937 100644 (file)
@@ -93,4 +93,32 @@ else
        done
 fi
 
+beos_files="ChangeLog internal.h"
+if ( echo $* | grep keep\-beos > /dev/null ) ; then
+       for i in $beos_files ; do
+               if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping beos stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $beos_files ; do
+               if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"beos\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-beos/,/end-\sanitize\-beos/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
+
 # End of file.