From 318b499d8e52bc48db7a61aebee7e70ddc8bfbee Mon Sep 17 00:00:00 2001 From: Gavin Romig-Koch Date: Wed, 10 Sep 1997 04:53:18 +0000 Subject: [PATCH] Support tx19 sanitation. --- .Sanitize | 29 +++++++++++++++++++++++++++++ gas/.Sanitize | 28 ++++++++++++++++++++++++++++ gas/config/.Sanitize | 29 +++++++++++++++++++++++++++++ sim/mips/.Sanitize | 30 ++++++++++++++++++++++++++++++ 4 files changed, 116 insertions(+) diff --git a/.Sanitize b/.Sanitize index 15033a1..5a27b37 100644 --- a/.Sanitize +++ b/.Sanitize @@ -361,6 +361,35 @@ else done fi +tx19_files="ChangeLog config.sub" + +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 + tic80_files="ChangeLog config.sub configure.in" if ( echo $* | grep keep\-tic80 > /dev/null ) ; then diff --git a/gas/.Sanitize b/gas/.Sanitize index a74808a..1687d4f 100644 --- a/gas/.Sanitize +++ b/gas/.Sanitize @@ -222,6 +222,34 @@ else done fi +tx19_files="ChangeLog" +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 $tx19_files ; 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 + tic80_files="ChangeLog configure.in configure" if ( echo $* | grep keep\-tic80 > /dev/null ) ; then for i in $tic80_files ; do diff --git a/gas/config/.Sanitize b/gas/config/.Sanitize index 5dd9917..92d7d71 100644 --- a/gas/config/.Sanitize +++ b/gas/config/.Sanitize @@ -203,6 +203,35 @@ else done fi +tx19_files="tc-mips.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 + tic80_files="obj-coff.h" if ( echo $* | grep keep\-tic80 > /dev/null ) ; then 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. -- 2.7.4