aboutsummaryrefslogtreecommitdiff
path: root/gas/.Sanitize
diff options
context:
space:
mode:
Diffstat (limited to 'gas/.Sanitize')
-rw-r--r--gas/.Sanitize26
1 files changed, 26 insertions, 0 deletions
diff --git a/gas/.Sanitize b/gas/.Sanitize
index 6226e7d..5592f21 100644
--- a/gas/.Sanitize
+++ b/gas/.Sanitize
@@ -375,6 +375,32 @@ else
fi
done
fi
+if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then
+ for i in $m32rx_files ; do
+ if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping m32rx stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $m32rx_files ; do
+ if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"m32rx\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/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
sky_files="ChangeLog configure.in configure"
if ( echo $* | grep keep\-sky > /dev/null ) ; then