old-cross-binutils/ld/.Sanitize

170 lines
3.7 KiB
Text
Raw Normal View History

1994-02-28 19:14:06 +00:00
# .Sanitize for devo/ld.
1991-05-23 21:49:14 +00:00
1994-01-26 04:19:32 +00:00
# Each directory to survive its way into a release will need a file
1991-05-23 21:49:14 +00:00
# like this one called "./.Sanitize". All keyword lines must exist,
# and must exist in the order specified by this file. Each directory
# in the tree will be processed, top down, in the following order.
# Hash started lines like this one are comments and will be deleted
# before anything else is done. Blank lines will also be squashed
# out.
# The lines between the "Do-first:" line and the "Things-to-keep:"
# line are executed as a /bin/sh shell script before anything else is
1994-01-26 04:19:32 +00:00
# done in this directory.
1991-05-23 21:49:14 +00:00
Do-first:
1993-02-26 18:53:13 +00:00
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
keep_these_too=""
fi
1991-05-23 21:49:14 +00:00
1994-01-26 04:19:32 +00:00
if ( echo $* | grep keep\-mpw > /dev/null ) ; then
1994-02-28 19:14:06 +00:00
keep_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${keep_these_too}"
1994-01-26 04:19:32 +00:00
else
1994-02-28 19:14:06 +00:00
lose_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${lose_these_too}"
1994-01-26 04:19:32 +00:00
fi
if ( echo $* | grep keep\-gm > /dev/null ) ; then
keep_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${keep_these_too}"
else
lose_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${lose_these_too}"
fi
1991-05-23 21:49:14 +00:00
# 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
# called. Directories not listed will be removed in their entirety
# with rm -rf.
Things-to-keep:
1993-05-27 06:44:29 +00:00
ChangeLog
1991-05-23 21:49:14 +00:00
Makefile.in
1993-05-17 19:45:17 +00:00
NEWS
1992-02-16 20:49:26 +00:00
README
1992-09-03 22:56:45 +00:00
TODO
cdtest-foo.cc
cdtest-foo.h
cdtest-func.cc
cdtest-main.cc
cdtest.exp
1991-05-23 21:49:14 +00:00
config
1991-09-23 20:59:12 +00:00
config.h
1992-02-22 00:11:39 +00:00
configure.bat
1991-05-23 21:49:14 +00:00
configure.in
dep-in.sed
emulparams
emultempl
1992-02-16 20:49:26 +00:00
genscripts.sh
h8-doc.texi
1992-08-17 18:35:59 +00:00
ld.1
gen-doc.texi
1991-09-23 20:59:12 +00:00
ld.h
ld.texinfo
1991-11-05 20:36:54 +00:00
ldctor.c
1991-12-08 01:27:59 +00:00
ldctor.h
1992-02-16 20:49:26 +00:00
ldemul.c
ldemul.h
1991-09-23 20:59:12 +00:00
ldexp.c
ldexp.h
ldfile.c
ldfile.h
ldgram.y
ldint.texinfo
1991-09-23 20:59:12 +00:00
ldlang.c
ldlang.h
ldlex.h
ldlex.l
ldmain.c
ldmain.h
ldmisc.c
ldmisc.h
ldver.c
ldver.h
ldwrite.c
ldwrite.h
lexsup.c
1992-04-15 23:11:53 +00:00
mri.c
1992-05-01 22:08:40 +00:00
mri.h
scripttempl
1994-01-28 17:19:22 +00:00
testsuite
1991-05-23 21:49:14 +00:00
1993-05-27 06:44:29 +00:00
Things-to-lose:
1991-05-23 21:49:14 +00:00
Do-last:
1993-02-26 18:53:13 +00:00
echo Looking for signs of \"v9\"...
# Don't try to clean directories here, as the 'mv' command will fail.
# Also, grep fails on NFS mounted directories.
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
for i in * ; do
if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
echo Keeping v9 stuff in $i
fi
done
else
for i in * ; do
if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
echo Cleaning the \"v9\" out of $i...
cp $i new
sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
echo Caching $i in .Recover...
mv $i .Recover
fi
mv new $i
fi
done
fi
1991-05-23 21:49:14 +00:00
1994-01-26 04:19:32 +00:00
echo Looking for traces of \"mpw\"...
# 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
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...
cp $i new
sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
echo Caching $i in .Recover...
mv $i .Recover
fi
mv new $i
fi
done
fi
echo Looking for PowerPC NetWare...
ppcfiles="configure.in"
if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
if [ -n "${verbose}" ] ; then
echo Keeping PowerPC NetWare stuff in $ppcfiles.
fi
else
if [ -n "${verbose}" ]; then
echo -n Removing PowerPC NetWare in `pwd`:
fi
for f in $ppcfiles ; do
if [ -n "${verbose}" ] ; then
echo -n " " $f
fi
sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new
if [ -n "${safe}" ] ; then
mv $f .Recover
fi
mv new $f
done
fi
1991-05-23 21:49:14 +00:00
# End of file.