aboutsummaryrefslogtreecommitdiff
path: root/gdb/.Sanitize
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/.Sanitize')
-rw-r--r--gdb/.Sanitize40
1 files changed, 40 insertions, 0 deletions
diff --git a/gdb/.Sanitize b/gdb/.Sanitize
index 3f446a0..d5ff460 100644
--- a/gdb/.Sanitize
+++ b/gdb/.Sanitize
@@ -43,6 +43,20 @@ else
fi
fi
+hpread_files="hpread.c ChangeLog.hpread"
+
+if ( echo $* | grep keep\-hpread > /dev/null ) ; then
+ keep_these_too="${hpread_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${hpread_files}
+ fi
+else
+ lose_these_too="${hpread_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${hpread_files}
+ fi
+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
@@ -372,4 +386,30 @@ else
done
fi
+echo Removing traces of \"hpread\"...
+
+# Don't try to clean directories here, as the 'mv' command will fail.
+# Also, grep fails on NFS mounted directories.
+if ( echo $* | grep keep\-hpread > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
+ echo Keeping hpread stuff in $i
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
+ echo Removing traces of \"hpread\" out of $i...
+ cp $i new
+ sed '/start\-sanitize\-hpread/,/end-\sanitize\-hpread/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
+fi
+
+
# End of file.