Do-first:
-mpw_files="mpw-make.in mpw-config.in mpw-em.c ChangeLog.mpw"
-
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
- keep_these_too="${mpw_files} ${keep_these_too}"
-else
- lose_these_too="${mpw_files} ${lose_these_too}"
-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
NEWS
README
TODO
-config
-config.h
+acconfig.h
+aclocal.m4
+config.in
+configure
configure.bat
+configure.host
configure.in
+configure.tgt
dep-in.sed
emulparams
emultempl
+fnmatch.c
+fnmatch.h
genscripts.sh
h8-doc.texi
ld.1
gen-doc.texi
ld.h
ld.texinfo
+ldcref.c
ldctor.c
ldctor.h
ldemul.c
ldwrite.c
ldwrite.h
lexsup.c
+mac-ld.r
+mpw-config.in
+mpw-emipsidt.c
+mpw-eppcmac.c
+mpw-esh.c
+mpw-make.sed
mri.c
mri.h
scripttempl
+sysdep.h
testsuite
Things-to-lose:
Do-last:
-echo Looking for traces of \"mpw\"...
+arc_files="ChangeLog configure.in configure.tgt Makefile.in"
-# Don't try to clean directories here, as the 'mv' command will fail.
-# Also, grep fails on NFS mounted directories.
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
- for i in * ; do
- if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
- echo Keeping mpw traces in $i
+if ( echo $* | grep keep\-arc > /dev/null ) ; then
+ for i in $arc_files ; do
+ if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping arc stuff in $i
+ fi
fi
done
else
- for i in * ; do
- if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
- echo Removing traces of \"mpw\" out of $i...
+ for i in $arc_files ; do
+ if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"arc\" from $i...
+ fi
cp $i new
- sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
+ sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
- echo Caching $i in .Recover...
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
mv $i .Recover
fi
mv new $i
done
fi
-rce_files="configure.in Makefile.in"
+d10v_files="ChangeLog configure.in configure.tgt Makefile.in"
-if ( echo $* | grep keep\-rce > /dev/null ) ; then
- for i in $rce_files ; do
- if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping rce stuff in $i
+ echo Keeping d10v stuff in $i
fi
fi
done
else
- for i in $rce_files ; do
- if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"rce\" from $i...
+ echo Removing traces of \"d10v\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
+ sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...
done
fi
-arc_files="ChangeLog configure.in configure"
+for i in * ; do
+ if test ! -d $i && (grep sanitize $i > /dev/null) ; then
+ echo '***' Some mentions of Sanitize are still left in $i! 1>&2
+ fi
+done
-if ( echo $* | grep keep\-arc > /dev/null ) ; then
- for i in $arc_files ; do
- if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
+v850_files="ChangeLog configure.tgt Makefile.in"
+
+if ( echo $* | grep keep\-v850 > /dev/null ) ; then
+ for i in $v850_files ; do
+ if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping arc stuff in $i
+ echo Keeping v850 stuff in $i
fi
fi
done
else
- for i in $arc_files ; do
- if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
+ for i in $v850_files ; do
+ if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"arc\" from $i...
+ echo Removing traces of \"v850\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
+ sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...