diff options
author | Gavin Romig-Koch <gavin@redhat.com> | 1997-09-10 04:53:18 +0000 |
---|---|---|
committer | Gavin Romig-Koch <gavin@redhat.com> | 1997-09-10 04:53:18 +0000 |
commit | 318b499d8e52bc48db7a61aebee7e70ddc8bfbee (patch) | |
tree | 940aa406a8155f2aad86b5b39bd2234cd7f3168d /sim | |
parent | 31dda65afff3731d51fa249f2118e267d561dd70 (diff) | |
download | gdb-318b499d8e52bc48db7a61aebee7e70ddc8bfbee.zip gdb-318b499d8e52bc48db7a61aebee7e70ddc8bfbee.tar.gz gdb-318b499d8e52bc48db7a61aebee7e70ddc8bfbee.tar.bz2 |
Support tx19 sanitation.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/mips/.Sanitize | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sim/mips/.Sanitize b/sim/mips/.Sanitize index 1d6fc7e..1e5b294 100644 --- a/sim/mips/.Sanitize +++ b/sim/mips/.Sanitize @@ -71,5 +71,35 @@ else fi +tx19_files="ChangeLog configure.in gencode.c" + +if ( echo $* | grep keep\-tx19 > /dev/null ) ; then + for i in $tx19_files ; do + if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping tx19 stuff in $i + fi + fi + done +else + for i in * ; do + if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"tx19\" from $i... + fi + cp $i new + sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/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 + + # End of file. |