From f3534b6867f36ddbe0373216999ca9b84b1b5cee Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 6 Feb 1998 03:27:55 +0000 Subject: [PATCH] sky sanitization --- sim/mips/.Sanitize | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/sim/mips/.Sanitize b/sim/mips/.Sanitize index c2e1470a6ff..29ff045ce56 100644 --- a/sim/mips/.Sanitize +++ b/sim/mips/.Sanitize @@ -101,6 +101,36 @@ else fi +sky_files="ChangeLog Makefile.in configure configure.in" + +if ( echo $* | grep keep\-sky > /dev/null ) ; then + for i in $sky_files ; do + if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping sky stuff in $i + fi + fi + done +else + for i in * ; do + if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"sky\" from $i... + fi + cp $i new + sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/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 + + tx19_files="ChangeLog configure configure.in sim-main.h interp.c gencode.c mips.igen mips.dc m16.igen" if ( echo $* | grep keep\-tx19 > /dev/null ) ; then