binutils-gdb/ld/.Sanitize

213 lines
4.5 KiB
Plaintext
Raw Normal View History

1994-03-01 03:14:06 +08:00
# .Sanitize for devo/ld.
1991-05-24 06:49:14 +09:00
1994-01-26 12:19:32 +08:00
# Each directory to survive its way into a release will need a file
1991-05-24 06:49:14 +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-26 12:19:32 +08:00
# done in this directory.
1991-05-24 06:49:14 +09: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 14:44:29 +08:00
ChangeLog
1991-05-24 06:49:14 +09:00
Makefile.in
1993-05-18 03:45:17 +08:00
NEWS
1992-02-17 04:49:26 +08:00
README
1992-09-04 06:56:45 +08:00
TODO
acconfig.h
aclocal.m4
config.in
configure
1992-02-22 08:11:39 +08:00
configure.bat
configure.host
1991-05-24 06:49:14 +09:00
configure.in
configure.tgt
dep-in.sed
emulparams
emultempl
1992-02-17 04:49:26 +08:00
genscripts.sh
h8-doc.texi
1992-08-18 02:35:59 +08:00
ld.1
gen-doc.texi
1991-09-24 04:59:12 +08:00
ld.h
ld.texinfo
ldcref.c
1991-11-06 04:36:54 +08:00
ldctor.c
1991-12-08 09:27:59 +08:00
ldctor.h
1992-02-17 04:49:26 +08:00
ldemul.c
ldemul.h
1991-09-24 04:59:12 +08:00
ldexp.c
ldexp.h
ldfile.c
ldfile.h
ldgram.y
ldint.texinfo
1991-09-24 04:59:12 +08: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-10-27 13:30:14 +08:00
mac-ld.r
1995-04-13 02:46:15 +08:00
mpw-config.in
mpw-emipself.c
1995-04-13 02:46:15 +08:00
mpw-emipsidt.c
1995-12-13 06:37:05 +08:00
mpw-eppcmac.c
1995-06-22 04:00:22 +08:00
mpw-esh.c
1995-10-27 13:30:14 +08:00
mpw-make.sed
1992-04-16 07:11:53 +08:00
mri.c
1992-05-02 06:08:40 +08:00
mri.h
scripttempl
sysdep.h
1994-01-29 01:19:22 +08:00
testsuite
1991-05-24 06:49:14 +09:00
1993-05-27 14:44:29 +08:00
Things-to-lose:
1991-05-24 06:49:14 +09:00
Do-last:
arc_files="ChangeLog configure.tgt Makefile.in"
1994-12-15 05:45:07 +08: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
d10v_files="ChangeLog configure.in configure.tgt Makefile.in"
if ( echo $* | grep keep\-d10v > /dev/null ) ; then
for i in $d10v_files ; do
if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping d10v stuff in $i
fi
fi
done
else
for i in $d10v_files ; do
if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"d10v\" from $i...
fi
cp $i new
sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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
m32r_files="ChangeLog configure.tgt Makefile.in"
if ( echo $* | grep keep\-m32r > /dev/null ) ; then
for i in $m32r_files ; do
if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping m32r stuff in $i
fi
fi
done
else
for i in $m32r_files ; do
if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"m32r\" from $i...
fi
cp $i new
sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/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
v850_files="ChangeLog configure.tgt Makefile.in"
if ( echo $* | grep keep\-v850 > /dev/null ) ; then
for i in $v850_files ; do
if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping v850 stuff in $i
fi
fi
done
else
for i in $v850_files ; do
if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"v850\" from $i...
fi
cp $i new
sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/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-24 06:49:14 +09:00
# End of file.