From: Ian Lance Taylor Date: Fri, 24 Oct 1997 16:39:38 +0000 (+0000) Subject: sanitize for vr5400 X-Git-Tag: gdb-4_18~4389 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b29430fa376337c735b440ae2c86d09c943b651;p=platform%2Fupstream%2Fbinutils.git sanitize for vr5400 --- diff --git a/.Sanitize b/.Sanitize index c304e52..4f3d4ee 100644 --- a/.Sanitize +++ b/.Sanitize @@ -410,6 +410,35 @@ if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then mv new Makefile.in fi +vr5400_files="ChangeLog config.sub" + +if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then + for i in $vr5400_files ; do + if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping vr5400 stuff in $i + fi + fi + done +else + for i in * ; do + if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"vr5400\" from $i... + fi + cp $i new + sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/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 + # Do this check LAST! for i in * ; do if test ! -d $i && (grep sanitize $i > /dev/null) ; then