From: Andrew Cagney Date: Fri, 21 Feb 1997 02:44:57 +0000 (+0000) Subject: Add d30v simulator configuration but sanatize it out. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=317df3b530276f2acbdf8950d1d9b76deb83753c;p=binutils-gdb.git Add d30v simulator configuration but sanatize it out. --- diff --git a/ChangeLog b/ChangeLog index f35e947e9de..8e30da03d88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,11 @@ start-sanitize-d30v +Sun Feb 16 15:41:09 1997 Andrew Cagney + + * 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 * config.sub, configure.in: Add d30v target cpu. diff --git a/sim/.Sanitize b/sim/.Sanitize index 47b4fd5f9b0..b9b97ade46d 100644 --- a/sim/.Sanitize +++ b/sim/.Sanitize @@ -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