old-cross-binutils/config/.Sanitize

142 lines
2.9 KiB
Text
Raw Normal View History

1995-04-10 20:26:39 +00:00
# .Sanitize for devo/config.
1994-01-22 21:22:08 +00:00
# Each directory to survive its way into a release will need a file
1991-05-23 17:10:40 +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-22 21:22:08 +00:00
# done in this directory.
1991-05-23 17:10:40 +00:00
Do-first:
1997-02-11 13:26:34 +00:00
if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
keep_these_too="${keep_these_too} mt-r5900"
else
lose_these_too="${lose_these_too} mt-r5900"
fi
1991-05-23 17:10:40 +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:
1992-04-08 00:23:29 +00:00
ChangeLog
1992-05-26 23:57:55 +00:00
mh-a68bsd
1993-03-09 02:35:46 +00:00
mh-aix386
mh-apollo68
mh-cxux
1996-06-24 06:06:44 +00:00
mh-cygwin32
mh-decstation
mh-delta88
mh-dgux
1996-10-09 05:51:52 +00:00
mh-dgux386
mh-go32
1993-08-05 22:46:44 +00:00
mh-hp300
1992-07-22 02:41:29 +00:00
mh-hpux
mh-hpux8
mh-irix4
1993-12-02 19:35:47 +00:00
mh-irix5
1996-07-25 07:35:23 +00:00
mh-irix6
1993-07-20 17:34:43 +00:00
mh-lynxos
1994-05-07 04:58:52 +00:00
mh-lynxrs6k
mh-m68kpic
mh-mingw32
1992-04-11 06:10:56 +00:00
mh-ncr3000
mh-ncrsvr43
1996-03-15 00:29:21 +00:00
mh-necv4
1995-03-31 19:42:28 +00:00
mh-papic
mh-ppcpic
1993-07-08 04:00:47 +00:00
mh-riscos
1991-11-21 05:35:10 +00:00
mh-sco
1992-06-17 01:37:46 +00:00
mh-solaris
1995-03-31 19:42:28 +00:00
mh-sparcpic
1993-03-31 02:54:10 +00:00
mh-sun3
mh-sysv
1991-12-20 22:47:44 +00:00
mh-sysv4
mh-vaxult2
1996-10-08 18:04:04 +00:00
mh-windows
1995-03-31 19:42:28 +00:00
mh-x86pic
1996-07-12 19:05:17 +00:00
mpw
1995-04-10 20:26:39 +00:00
mpw-mh-mpw
1997-09-29 16:14:30 +00:00
mt-linux
mt-m68kpic
1995-03-31 19:42:28 +00:00
mt-netware
mt-papic
mt-ppcpic
mt-sparcpic
1995-03-31 19:42:28 +00:00
mt-v810
mt-x86pic
1991-05-23 17:10:40 +00:00
1993-05-27 06:44:29 +00:00
Things-to-lose:
1992-07-22 03:04:11 +00:00
Do-last:
1991-05-23 17:10:40 +00:00
1997-02-27 18:59:07 +00:00
r5900_files="ChangeLog"
if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
for i in $r5900_files ; do
if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping r5900 stuff in $i
fi
fi
done
else
for i in $r5900_files ; do
if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"r5900\" from $i...
fi
cp $i new
sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/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
cygnus_files="mh-go32"
if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
for i in $cygnus_files ; do
if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping cygnus stuff in $i
fi
fi
done
else
for i in $cygnus_files ; do
if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"cygnus\" from $i...
fi
cp $i new
sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/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
1997-02-27 18:59:07 +00:00
1991-05-23 17:10:40 +00:00
# End of file.