binutils-gdb/ld/.Sanitize

151 lines
3.0 KiB
Plaintext
Raw Normal View History

1994-02-28 20:14:06 +01:00
# .Sanitize for devo/ld.
1991-05-23 23:49:14 +02:00
1994-01-26 05:19:32 +01:00
# Each directory to survive its way into a release will need a file
1991-05-23 23:49:14 +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-26 05:19:32 +01:00
# done in this directory.
1991-05-23 23:49:14 +02:00
Do-first:
# 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
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
acconfig.h
aclocal.m4
config.in
configure
1992-02-22 01:11:39 +01:00
configure.bat
configure.host
1991-05-23 23:49:14 +02:00
configure.in
configure.tgt
dep-in.sed
emulparams
emultempl
1992-02-16 21:49:26 +01:00
genscripts.sh
h8-doc.texi
1992-08-17 20:35:59 +02:00
ld.1
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
1991-09-23 22:59:12 +02:00
ldexp.c
ldexp.h
ldfile.c
ldfile.h
ldgram.y
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
ldver.c
ldver.h
ldwrite.c
ldwrite.h
lexsup.c
1995-04-12 20:46:15 +02:00
mpw-config.in
mpw-emipsidt.c
1995-06-21 22:00:22 +02:00
mpw-esh.c
1995-04-12 20:46:15 +02:00
mpw-make.in
1992-04-16 01:11:53 +02:00
mri.c
1992-05-02 00:08:40 +02:00
mri.h
scripttempl
sysdep.h
1994-01-28 18:19:22 +01:00
testsuite
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:
rce_files="configure.in configure.tgt Makefile.in"
1994-11-25 01:25:34 +01:00
if ( echo $* | grep keep\-rce > /dev/null ) ; then
for i in $rce_files ; do
if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
1994-11-25 01:25:34 +01:00
echo Keeping rce stuff in $i
fi
fi
done
else
1994-11-25 01:25:34 +01:00
for i in $rce_files ; do
if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
1994-11-25 01:25:34 +01:00
echo Removing traces of \"rce\" from $i...
fi
cp $i new
1994-11-25 01:25:34 +01:00
sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/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
arc_files="ChangeLog configure.in configure.tgt Makefile.in"
1994-12-14 22:45:07 +01:00
if ( echo $* | grep keep\-arc > /dev/null ) ; then
for i in $arc_files ; do
if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping arc stuff in $i
fi
fi
done
else
for i in $arc_files ; do
if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"arc\" from $i...
fi
cp $i new
sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
for i in * ; do
if test ! -d $i && (grep sanitize $i > /dev/null) ; then
echo '***' Some mentions of Sanitize are still left in $i! 1>&2
fi
done
#
1991-05-23 23:49:14 +02:00
# End of file.