Do-first:
+tx19_files="tm-tx19.h tm-tx19l.h tx19.mt tx19l.mt"
+
+if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
+ keep_these_too="${tx19_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${tx19_files}
+ fi
+else
+ lose_these_too="${tx19_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${tx19_files}
+ fi
+fi
+
+tx49_files="tm-tx49.h tm-tx49el.h tx49.mt tx49el.mt"
+
+if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
+ keep_these_too="${tx49_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${tx49_files}
+ fi
+else
+ lose_these_too="${tx49_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${tx49_files}
+ fi
+fi
+
+if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
+ keep_these_too="tm-r5900.h r5900.mt ${keep_these_too}"
+else
+ lose_these_too="tm-r5900.h r5900.mt ${lose_these_too}"
+fi
+
+if ( echo $* | grep keep\-sky > /dev/null ) ; then
+ keep_these_too="tm-txvu.h txvu.mt ${keep_these_too}"
+else
+ lose_these_too="tm-txvu.h txvu.mt ${lose_these_too}"
+fi
+
+if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
+ keep_these_too="tm-vr4320.h vr4320.mt ${keep_these_too}"
+else
+ lose_these_too="tm-vr4320.h vr4320.mt ${lose_these_too}"
+fi
+
+if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
+ keep_these_too="tm-vr4xxx.h vr4xxx.mt ${keep_these_too}"
+else
+ lose_these_too="tm-vr4xxx.h vr4xxx.mt ${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
bigmips64.mt
decstation.mh
decstation.mt
-idt.mt
-idt64.mt
-idtl.mt
-idtl64.mt
+embed.mt
+embed64.mt
+embedl.mt
+embedl64.mt
irix3.mh
irix3.mt
irix4.mh
irix5.mt
littlemips.mh
littlemips.mt
-mipsel64.mt
mipsm3.mh
mipsm3.mt
mipsv4.mh
nm-irix3.h
nm-irix4.h
nm-irix5.h
-nm-m3.h
nm-mips.h
nm-news-mips.h
nm-riscos.h
-nm-sysv4.h
riscos.mh
tm-bigmips.h
tm-bigmips64.h
-tm-idt.h
-tm-idt64.h
-tm-idtl.h
-tm-idtl64.h
+tm-embed.h
+tm-embed64.h
+tm-embedl.h
+tm-embedl64.h
tm-irix3.h
tm-irix5.h
tm-mips.h
tm-mips64.h
tm-mipsm3.h
tm-mipsv4.h
+tm-tx39.h
+tm-tx39l.h
+tm-vr4100.h
tm-vr4300.h
tm-vr4300el.h
+tm-vr5000.h
+tm-vr5000el.h
+tm-vxmips.h
+tx39.mt
+tx39l.mt
+vr4100.mt
vr4300.mt
vr4300el.mt
+vr5000.mt
+vr5000el.mt
+vxmips.mt
xm-irix3.h
xm-irix4.h
xm-irix5.h
Things-to-lose:
-
Do-last:
-if ( echo $* | grep keep\-gm > /dev/null ) ; then
- for i in * ; do
- if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping gm stuff in $i
- fi
- fi
- done
-else
- for i in * ; do
- if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Removing traces of \"gm\" from $i...
- fi
- cp $i new
- sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/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.