1991-05-23 23:49:14 +02:00
|
|
|
# Sanitize.in for devo.
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
# Each directory to survive it's way into a release will need a file
|
|
|
|
# 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
|
1993-05-06 04:04:18 +02:00
|
|
|
# done in this
|
1991-05-23 23:49:14 +02:00
|
|
|
|
|
|
|
Do-first:
|
|
|
|
|
1993-02-26 19:53:13 +01:00
|
|
|
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
|
|
|
|
keep_these_too=""
|
|
|
|
fi
|
1991-05-23 23:49:14 +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:
|
1993-05-27 08:44:29 +02:00
|
|
|
|
1991-10-05 05:55:05 +01:00
|
|
|
ChangeLog
|
1991-05-23 23:49:14 +02:00
|
|
|
Makefile.in
|
1993-05-17 21:45:17 +02:00
|
|
|
NEWS
|
1992-02-16 21:49:26 +01:00
|
|
|
README
|
1992-09-04 00:56:45 +02:00
|
|
|
TODO
|
1992-08-05 06:15:37 +02:00
|
|
|
cdtest-foo.cc
|
|
|
|
cdtest-foo.h
|
|
|
|
cdtest-func.cc
|
|
|
|
cdtest-main.cc
|
|
|
|
cdtest.exp
|
1991-05-23 23:49:14 +02:00
|
|
|
config
|
1991-09-23 22:59:12 +02:00
|
|
|
config.h
|
1992-02-22 01:11:39 +01:00
|
|
|
configure.bat
|
1991-05-23 23:49:14 +02:00
|
|
|
configure.in
|
1992-02-16 21:49:26 +01:00
|
|
|
genscripts.sh
|
1993-03-31 01:25:03 +02:00
|
|
|
h8-doc.texi
|
1992-08-17 20:35:59 +02:00
|
|
|
ld.1
|
1993-03-31 01:25:03 +02:00
|
|
|
gen-doc.texi
|
1991-09-23 22:59:12 +02:00
|
|
|
ld.h
|
|
|
|
ld.texinfo
|
1991-11-05 21:36:54 +01:00
|
|
|
ldctor.c
|
1991-12-08 02:27:59 +01:00
|
|
|
ldctor.h
|
1992-02-16 21:49:26 +01:00
|
|
|
ldemul.c
|
|
|
|
ldemul.h
|
|
|
|
lderror.c
|
1992-03-07 19:32:27 +01:00
|
|
|
lderror.h
|
1991-09-23 22:59:12 +02:00
|
|
|
ldexp.c
|
|
|
|
ldexp.h
|
|
|
|
ldfile.c
|
|
|
|
ldfile.h
|
|
|
|
ldgram.y
|
1992-02-16 21:49:26 +01:00
|
|
|
ldindr.c
|
|
|
|
ldindr.h
|
1992-08-07 03:37:39 +02:00
|
|
|
ldint.texinfo
|
1991-09-23 22:59:12 +02:00
|
|
|
ldlang.c
|
|
|
|
ldlang.h
|
|
|
|
ldlex.h
|
|
|
|
ldlex.l
|
|
|
|
ldmain.c
|
|
|
|
ldmain.h
|
|
|
|
ldmisc.c
|
|
|
|
ldmisc.h
|
|
|
|
ldsym.c
|
|
|
|
ldsym.h
|
|
|
|
ldver.c
|
|
|
|
ldver.h
|
1992-02-16 21:49:26 +01:00
|
|
|
ldwarn.c
|
1991-09-23 22:59:12 +02:00
|
|
|
ldwarn.h
|
|
|
|
ldwrite.c
|
|
|
|
ldwrite.h
|
1992-01-29 17:44:09 +01:00
|
|
|
lexsup.c
|
1992-04-16 01:11:53 +02:00
|
|
|
mri.c
|
1992-05-02 00:08:40 +02:00
|
|
|
mri.h
|
1992-02-16 21:49:26 +01:00
|
|
|
relax.c
|
1992-03-07 19:32:27 +01:00
|
|
|
relax.h
|
1991-05-23 23:49:14 +02:00
|
|
|
|
1993-05-27 08:44:29 +02:00
|
|
|
Things-to-lose:
|
|
|
|
|
1991-05-23 23:49:14 +02:00
|
|
|
Do-last:
|
|
|
|
|
1993-02-26 19:53:13 +01: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 23:49:14 +02:00
|
|
|
|
|
|
|
# End of file.
|