aboutsummaryrefslogtreecommitdiff
path: root/gdb/.Sanitize
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-11-16 19:25:35 +0000
committerFred Fish <fnf@specifix.com>1992-11-16 19:25:35 +0000
commit19cfe25d9010c84f8e8f973acf0587ec92489126 (patch)
treebb49061e07108729ab0445ec53e1a9b90433ec8f /gdb/.Sanitize
parent45a655b0b67e5f21ee23119cc34bf7125965e59d (diff)
downloadgdb-19cfe25d9010c84f8e8f973acf0587ec92489126.zip
gdb-19cfe25d9010c84f8e8f973acf0587ec92489126.tar.gz
gdb-19cfe25d9010c84f8e8f973acf0587ec92489126.tar.bz2
First cut at sanitizing away the chill stuff.
Diffstat (limited to 'gdb/.Sanitize')
-rw-r--r--gdb/.Sanitize42
1 files changed, 41 insertions, 1 deletions
diff --git a/gdb/.Sanitize b/gdb/.Sanitize
index b4f07e2..0c0cb68 100644
--- a/gdb/.Sanitize
+++ b/gdb/.Sanitize
@@ -15,6 +15,10 @@
Do-first:
+if ( echo $* | grep keep\-chill > /dev/null ) ; then
+ keep_these_too="ch-exp.y"
+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
@@ -52,7 +56,6 @@ buildsym.c
buildsym.h
c-exp.y
call-cmds.h
-ch-exp.y
coffread.c
command.c
command.h
@@ -358,4 +361,41 @@ xm-vaxult.h
Do-last:
+echo Thawing away the \"chill\"...
+
+# Don't try to clean directories here, as the 'mv' command will fail.
+# Also, grep fails on NFS mounted directories.
+if ( echo $* | grep keep\-chill > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
+ echo Keeping chill stuff in $i
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
+ echo Thawing the \"chill\" out of $i...
+ cp $i new
+ sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ echo Caching $i in .Recover...
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+ echo Thawing the \"chill\" out of Makefile.in...
+ cp Makefile.in new
+ sed -e 's/\$\{srcdir\}/ch-exp.y//g' \
+ -e 's/ch-exp.y//g' \
+ -e 's/ch-exp.tab.c//g' \
+ -e 's/ch-exp.tab.o//g' \
+ ' < Makefile.in > new
+ if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
+ echo Caching Makefile.in in .Recover...
+ mv Makefile.in .Recover
+ fi
+ mv new Makefile.in
+fi
+
# End of file.