aboutsummaryrefslogtreecommitdiff
path: root/bfd/.Sanitize
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-07-12 14:37:44 +0000
committerKen Raeburn <raeburn@cygnus>1993-07-12 14:37:44 +0000
commit1bea1b6fa704d61aed841fd1134b6a0bee92f6c1 (patch)
treee56ceb2e705faeae489bb72ec5cac658cbda4b66 /bfd/.Sanitize
parent99c24539c5411b68ad6f5e8b59f6548f4da8d9c7 (diff)
downloadgdb-1bea1b6fa704d61aed841fd1134b6a0bee92f6c1.zip
gdb-1bea1b6fa704d61aed841fd1134b6a0bee92f6c1.tar.gz
gdb-1bea1b6fa704d61aed841fd1134b6a0bee92f6c1.tar.bz2
Clean v9 stuff from reloc.c and bfd-in2.h also.
Diffstat (limited to 'bfd/.Sanitize')
-rw-r--r--bfd/.Sanitize20
1 files changed, 8 insertions, 12 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize
index 62c523f..b420181 100644
--- a/bfd/.Sanitize
+++ b/bfd/.Sanitize
@@ -15,6 +15,10 @@
Do-first:
+if ( echo $* | grep keep\-v9 > /dev/null ) ; then
+ keep_these_too="elf64-sparc.c"
+fi
+
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
@@ -153,33 +157,25 @@ Things-to-lose:
Do-last:
-v9files="configure.in elfcode.h"
+v9files="configure.in elfcode.h reloc.c bfd-in2.h"
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
if [ -n "${verbose}" ] ; then
echo Keeping v9 stuff in $v9files.
fi
else
if [ -n "${verbose}" ]; then
- echo -n Cleaning v9 from
+ echo -n Cleaning v9 in `pwd`:
fi
for f in $v9files ; do
if [ -n "${verbose}" ] ; then
echo -n " " $f
fi
- grep -v v9 < $f > new
+ sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new
if [ -n "${safe}" ] ; then
- cp $f .Recover
+ mv $f .Recover
fi
mv new $f
done
- if [ -n "${safe}" ] ; then
- mv elf64-sparc.c .Recover
- else
- rm elf64-sparc.c
- fi
- if [ -n "${verbose}" ] ; then
- echo " ..." deleting elf64-sparc.c.
- fi
fi
# End of file.