From 745a0437db96f667ba50ad4aaaaff8907a2ba67c Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Fri, 2 Aug 1996 00:22:58 +0000 Subject: [PATCH] Thu Aug 1 17:08:41 1996 Martin M. Hunt * configure.in (d10v-*-*): Added D10V simulator. --- sim/.Sanitize | 40 ++++++++++++++++++++++++++++++++++++++++ sim/configure.in | 3 +++ 2 files changed, 43 insertions(+) diff --git a/sim/.Sanitize b/sim/.Sanitize index e76cdd55206..ff0bd92ba2f 100644 --- a/sim/.Sanitize +++ b/sim/.Sanitize @@ -15,6 +15,13 @@ Do-first: +d10v_files="d10v" +if ( echo $* | grep keep\-d10v > /dev/null ) ; then + keep_these_too="${d10v_files} ${keep_these_too}" +else + lose_these_too="${d10v_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 @@ -42,4 +49,37 @@ Things-to-lose: Do-last: +d10v_files="d10v" +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 +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 + # End of file. diff --git a/sim/configure.in b/sim/configure.in index d3eec69afe4..004f014402e 100644 --- a/sim/configure.in +++ b/sim/configure.in @@ -45,6 +45,9 @@ esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi]) case "${target}" in arm*-*-*) sim_target=arm ;; +# start-sanitize-d10v + d10v-*-*) sim_target=d10v ;; +# end-sanitize-d10v h8300*-*-*) sim_target=h8300 ;; h8500-*-*) sim_target=h8500 ;; mips*-*-*) sim_target=mips ;; -- 2.30.2