binutils-gdb/config/.Sanitize

112 lines
2.2 KiB
Plaintext
Raw Normal View History

1995-04-10 22:26:39 +02:00
# .Sanitize for devo/config.
1994-01-22 22:22:08 +01:00
# Each directory to survive its way into a release will need a file
1991-05-23 19:10:40 +02: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 22:22:08 +01:00
# done in this directory.
1991-05-23 19:10:40 +02:00
Do-first:
1997-02-11 14:26:34 +01: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 19:10:40 +02: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 02:23:29 +02:00
ChangeLog
1992-05-27 01:57:55 +02:00
mh-a68bsd
1993-03-09 03:35:46 +01:00
mh-aix386
mh-apollo68
mh-cxux
1996-06-24 08:06:44 +02:00
mh-cygwin32
mh-decstation
mh-delta88
mh-dgux
1996-10-09 07:51:52 +02:00
mh-dgux386
mh-go32
1993-08-06 00:46:44 +02:00
mh-hp300
1992-07-22 04:41:29 +02:00
mh-hpux
mh-hpux8
mh-irix4
1993-12-02 20:35:47 +01:00
mh-irix5
1996-07-25 09:35:23 +02:00
mh-irix6
1993-07-20 19:34:43 +02:00
mh-lynxos
1994-05-07 06:58:52 +02:00
mh-lynxrs6k
mh-m68kpic
1992-04-11 08:10:56 +02:00
mh-ncr3000
mh-ncrsvr43
1996-03-15 01:29:21 +01:00
mh-necv4
1995-03-31 21:42:28 +02:00
mh-papic
mh-ppcpic
1993-07-08 06:00:47 +02:00
mh-riscos
1991-11-21 06:35:10 +01:00
mh-sco
1992-06-17 03:37:46 +02:00
mh-solaris
1995-03-31 21:42:28 +02:00
mh-sparcpic
1993-03-31 04:54:10 +02:00
mh-sun3
mh-sysv
1991-12-20 23:47:44 +01:00
mh-sysv4
mh-vaxult2
1996-10-08 20:04:04 +02:00
mh-windows
1995-03-31 21:42:28 +02:00
mh-x86pic
1996-07-12 21:05:17 +02:00
mpw
1995-04-10 22:26:39 +02:00
mpw-mh-mpw
mt-m68kpic
1995-03-31 21:42:28 +02:00
mt-netware
mt-papic
mt-ppcpic
mt-sparcpic
1995-03-31 21:42:28 +02:00
mt-v810
mt-x86pic
1991-05-23 19:10:40 +02:00
1993-05-27 08:44:29 +02:00
Things-to-lose:
1992-07-22 05:04:11 +02:00
Do-last:
1991-05-23 19:10:40 +02:00
1997-02-27 19:59:07 +01: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
1991-05-23 19:10:40 +02:00
# End of file.