aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/.Sanitize
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/testsuite/binutils-all/.Sanitize')
-rw-r--r--binutils/testsuite/binutils-all/.Sanitize31
1 files changed, 30 insertions, 1 deletions
diff --git a/binutils/testsuite/binutils-all/.Sanitize b/binutils/testsuite/binutils-all/.Sanitize
index 70a2ae5..4132bf3 100644
--- a/binutils/testsuite/binutils-all/.Sanitize
+++ b/binutils/testsuite/binutils-all/.Sanitize
@@ -1,4 +1,4 @@
-# .Sanitize for deja-gnu.
+# .Sanitize for devo/binutils/testsuite/binutils-all.
# Each directory to survive it's way into a release will need a file
# like this one called "./.Sanitize". All keyword lines must exist,
@@ -76,6 +76,35 @@ else
done
fi
+sky_files="objdump.exp"
+
+if ( echo $* | grep keep\-sky > /dev/null ) ; then
+ for i in $sky_files ; do
+ if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping sky stuff in $i
+ fi
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"sky\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/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
+
for i in * ; do
if test ! -d $i && (grep sanitize $i > /dev/null) ; then
echo '***' Some mentions of Sanitize are still left in $i! 1>&2