sanitize keep-cygnus cgen generation

This commit is contained in:
Doug Evans 1998-01-20 02:36:21 +00:00
parent 59ae1b0fa9
commit 36de6f40d4
3 changed files with 41 additions and 1 deletions

View file

@ -15,6 +15,13 @@
Do-first:
cygnus_files="cgen.sh"
if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
keep_these_too="${cygnus_files} ${keep_these_too}"
else
lose_these_too="${cygnus_files} ${lose_these_too}"
fi
# 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
@ -28,7 +35,6 @@ Make-common.in
Makefile.in
aclocal.m4
callback.c
cgen.sh
cgen-mem.h
cgen-ops.h
cgen-scache.c
@ -140,4 +146,32 @@ else
done
fi
cygnus_files="ChangeLog Make-common.in"
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
# End of file.

View file

@ -1,7 +1,9 @@
Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
start-sanitize-cygnus
* Make-common.in (cgen-{arch,cpu,decode}): New targets.
* cgen.sh: New file.
end-sanitize-cygnus
* cgen-scache.h: Deleted.
* cgen-scache.c: Only compile contents if WITH_SCACHE.
(scache_init): Use runtime computed size of SCACHE.

View file

@ -479,6 +479,8 @@ stamp-h: config.in config.status
.gdbinit: # config.status $(srccom)/gdbinit.in
CONFIG_FILES=$@:../common/gdbinit.in CONFIG_HEADERS= $(SHELL) ./config.status
# start-sanitize-cygnus
# CGEN support
SCHEME = @SCHEME@
@ -526,4 +528,6 @@ cgen-decode: force
$(srccgen) $(CGEN_VERBOSE) \
$(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" ignored
# end-sanitize-cygnus
## End COMMON_POST_CONFIG_FRAG