diff options
author | Jason Molenda <jmolenda@apple.com> | 1998-05-27 19:34:49 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1998-05-27 19:34:49 +0000 |
commit | 17a56e138eed784127f873aa930ea5018dda71a0 (patch) | |
tree | a92cba6a47bb6ea584a6d93d506f590bec90337c /gdb/.Sanitize | |
parent | e838aeea64c86c2918479c55b7599124906cbed6 (diff) | |
download | gdb-17a56e138eed784127f873aa930ea5018dda71a0.zip gdb-17a56e138eed784127f873aa930ea5018dda71a0.tar.gz gdb-17a56e138eed784127f873aa930ea5018dda71a0.tar.bz2 |
add vr4111 as a sanitization tag to get rid of vr4111 and vr4102 mentions.
Diffstat (limited to 'gdb/.Sanitize')
-rw-r--r-- | gdb/.Sanitize | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/gdb/.Sanitize b/gdb/.Sanitize index e53bc76..f4b5770 100644 --- a/gdb/.Sanitize +++ b/gdb/.Sanitize @@ -102,6 +102,20 @@ else fi fi +vr4111_files="nec4102rom.c" + +if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then + keep_these_too="${vr4111_files} ${keep_these_too}" + if [ -n "${verbose}" ] ; then + echo Keeping ${vr4111_files} + fi +else + lose_these_too="${vr4111_files} ${lose_these_too}" + if [ -n "${verbose}" ] ; then + echo Deleting ${vr4111_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 @@ -309,7 +323,6 @@ mpw-config.in mpw-make.sed msg.defs msg_reply.defs -nec4102rom.c news-xdep.c nindy-share nindy-tdep.c @@ -767,6 +780,33 @@ else done fi +if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then + for i in * ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping vr4111 stuff in $i + fi + fi + done +else + for i in * ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"vr4111\" from $i... + fi + cp $i new + sed '/start\-sanitize\-vr4111/,/end-\sanitize\-vr4111/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 + if ( echo $* | grep keep\-ide > /dev/null ) ; then for i in * ; do if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then |