1996-08-29 03:06:42 +02:00
|
|
|
# .Sanitize for devo/sim/v850.
|
|
|
|
|
|
|
|
# Each directory to survive its 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
|
|
|
|
# done in this directory.
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
ChangeLog
|
|
|
|
Makefile.in
|
1998-04-27 00:03:55 +02:00
|
|
|
acconfig.h
|
1996-11-20 11:27:55 +01:00
|
|
|
config.in
|
1996-08-29 03:06:42 +02:00
|
|
|
configure
|
|
|
|
configure.in
|
|
|
|
v850_sim.h
|
1997-09-08 19:42:48 +02:00
|
|
|
v850.igen
|
|
|
|
v850-dc
|
1996-08-29 03:06:42 +02:00
|
|
|
gencode.c
|
|
|
|
interp.c
|
|
|
|
simops.c
|
1997-09-04 00:27:28 +02:00
|
|
|
sim-main.h
|
1996-08-29 03:06:42 +02:00
|
|
|
|
|
|
|
Things-to-lose:
|
|
|
|
|
|
|
|
Do-last:
|
|
|
|
|
1998-02-03 02:37:25 +01:00
|
|
|
v850e_files="interp.c simops.c v850.igen v850-dc ChangeLog sim-main.h"
|
1997-09-15 10:18:20 +02:00
|
|
|
if ( echo $* | grep keep\-v850e > /dev/null ) ; then
|
1997-08-14 04:13:32 +02:00
|
|
|
for i in $v850e_files ; do
|
1997-09-15 10:18:20 +02:00
|
|
|
if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
|
1997-08-14 04:13:32 +02:00
|
|
|
if [ -n "${verbose}" ] ; then
|
1997-09-15 10:18:20 +02:00
|
|
|
echo Keeping v850e stuff in $i
|
1997-08-14 04:13:32 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for i in $v850e_files ; do
|
1997-09-15 10:18:20 +02:00
|
|
|
if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
|
1997-08-14 04:13:32 +02:00
|
|
|
if [ -n "${verbose}" ] ; then
|
1997-09-15 10:18:20 +02:00
|
|
|
echo Removing traces of \"v850e\" from $i...
|
1997-08-14 04:13:32 +02:00
|
|
|
fi
|
|
|
|
cp $i new
|
1997-09-15 10:18:20 +02:00
|
|
|
sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
|
1997-08-14 04:13:32 +02:00
|
|
|
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
|
|
|
|
|
1996-08-29 03:06:42 +02:00
|
|
|
# End of file.
|