From: Ian Lance Taylor Date: Mon, 10 Aug 1998 20:30:33 +0000 (+0000) Subject: add armelf sanitization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d21e784e8dc317c6686ab3458a549d55ebab644a;p=binutils-gdb.git add armelf sanitization --- diff --git a/.Sanitize b/.Sanitize index a41d1827b35..0baba7cdd4f 100644 --- 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