Add d30v simulator configuration but sanatize it out.

This commit is contained in:
Andrew Cagney 1997-02-21 02:44:57 +00:00
parent 332cb5d943
commit 317df3b530
2 changed files with 43 additions and 0 deletions

View File

@ -1,4 +1,11 @@
start-sanitize-d30v
Sun Feb 16 15:41:09 1997 Andrew Cagney <cagney@critters.cygnus.com>
* configure.in (d30v-*): Remove sim directory from list of
unsupported d30v directories
end-sanitize-d30v
start-sanitize-d30v
Tue Feb 18 17:32:42 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
* config.sub, configure.in: Add d30v target cpu.

View File

@ -36,6 +36,13 @@ else
lose_these_too="${v850_files} ${lose_these_too}"
fi
d30v_files="d30v igen"
if ( echo $* | grep keep\-d30v > /dev/null ) ; then
keep_these_too="${d30v_files} ${keep_these_too}"
else
lose_these_too="${d30v_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
@ -121,6 +128,35 @@ else
fi
done
fi
d30v_files="configure configure.in ChangeLog"
if ( echo $* | grep keep\-d30v > /dev/null ) ; then
for i in $d30v_files ; do
if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping d30v stuff in $i
fi
fi
done
else
for i in $d30v_files ; do
if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"d30v\" from $i...
fi
cp $i new
sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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