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