1998-04-22 16:46:19 +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
|
|
|
|
|
1998-01-31 06:19:34 +00:00
|
|
|
if ( echo $* | grep lose\-mswin > /dev/null ) ; then
|
1998-01-27 05:19:50 +00:00
|
|
|
lose_these_too="${lose_these_too} mh-windows"
|
1998-01-31 06:19:34 +00:00
|
|
|
else
|
|
|
|
keep_these_too="${keep_these_too} mh-windows"
|
1998-01-27 05:19:50 +00:00
|
|
|
fi
|
|
|
|
|
1998-07-24 15:48:47 +00:00
|
|
|
if ( echo $* | grep keep\-sky > /dev/null ) ; then
|
1998-12-15 01:10:10 +00:00
|
|
|
keep_these_too="${keep_these_too} mt-sky mt-skyb"
|
1998-07-24 15:48:47 +00:00
|
|
|
else
|
1998-12-15 01:10:10 +00:00
|
|
|
lose_these_too="${lose_these_too} mt-sky mt-skyb"
|
1998-07-24 15:48:47 +00:00
|
|
|
fi
|
|
|
|
|
1991-05-23 17:10:40 +00:00
|
|
|
# All files listed between the "Things-to-keep:" line and the
|
1998-04-22 16:46:19 +00:00
|
|
|
# "Do-last:" line will be kept. All other files will be removed.
|
1991-05-23 17:10:40 +00:00
|
|
|
# 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
|
1998-10-09 21:10:04 +00:00
|
|
|
mh-aix43
|
1992-02-11 00:10:56 +00:00
|
|
|
mh-apollo68
|
1994-07-16 19:24:33 +00:00
|
|
|
mh-cxux
|
1998-11-02 23:18:10 +00:00
|
|
|
mh-cygwin
|
1991-12-13 23:07:20 +00:00
|
|
|
mh-decstation
|
1991-11-05 20:58:27 +00:00
|
|
|
mh-delta88
|
|
|
|
mh-dgux
|
1996-10-09 05:51:52 +00:00
|
|
|
mh-dgux386
|
1998-01-22 17:38:05 +00:00
|
|
|
mh-elfalphapic
|
1994-05-06 21:25:45 +00:00
|
|
|
mh-go32
|
1993-08-05 22:46:44 +00:00
|
|
|
mh-hp300
|
1992-07-22 02:41:29 +00:00
|
|
|
mh-hpux
|
1995-03-13 17:37:39 +00:00
|
|
|
mh-hpux8
|
1992-03-05 20:20:27 +00:00
|
|
|
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
|
1996-02-12 19:54:37 +00:00
|
|
|
mh-m68kpic
|
1998-01-04 00:12:58 +00:00
|
|
|
mh-mingw32
|
1992-04-11 06:10:56 +00:00
|
|
|
mh-ncr3000
|
1994-06-05 00:23:26 +00:00
|
|
|
mh-ncrsvr43
|
1996-03-15 00:29:21 +00:00
|
|
|
mh-necv4
|
1995-03-31 19:42:28 +00:00
|
|
|
mh-papic
|
1997-06-16 23:09:46 +00:00
|
|
|
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
|
1991-11-05 20:58:27 +00:00
|
|
|
mh-sysv
|
1991-12-20 22:47:44 +00:00
|
|
|
mh-sysv4
|
1998-04-14 19:14:45 +00:00
|
|
|
mh-sysv5
|
1993-03-03 06:11:45 +00:00
|
|
|
mh-vaxult2
|
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
|
1998-01-22 17:38:05 +00:00
|
|
|
mt-elfalphapic
|
1997-09-29 16:14:30 +00:00
|
|
|
mt-linux
|
1996-02-12 19:54:37 +00:00
|
|
|
mt-m68kpic
|
1995-03-31 19:42:28 +00:00
|
|
|
mt-netware
|
1998-04-22 16:46:19 +00:00
|
|
|
mt-ospace
|
1994-11-08 02:16:18 +00:00
|
|
|
mt-papic
|
1997-06-16 23:09:46 +00:00
|
|
|
mt-ppcpic
|
1994-11-08 02:16:18 +00:00
|
|
|
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:
|
1998-05-30 19:36:31 +00:00
|
|
|
acinclude.m4
|
1998-04-22 16:46:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
# The lines between the "Do-last:" line and the end of the file
|
|
|
|
# are executed as a /bin/sh shell script after everything else is
|
|
|
|
# done.
|
|
|
|
|
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
|
|
|
|
|
1998-07-24 15:48:47 +00:00
|
|
|
sky_files="ChangeLog"
|
|
|
|
if ( echo $* | grep keep\-sky > /dev/null ) ; then
|
|
|
|
for i in $sky_files ; do
|
|
|
|
if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Keeping sky stuff in $i
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for i in $sky_files ; do
|
|
|
|
if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Removing traces of \"sky\" from $i...
|
|
|
|
fi
|
|
|
|
cp $i new
|
|
|
|
sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/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-23 16:33:04 +00: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-27 18:59:07 +00:00
|
|
|
|
1998-04-22 16:46:19 +00:00
|
|
|
# eof
|