diff options
Diffstat (limited to 'include/opcode/.Sanitize')
-rw-r--r-- | include/opcode/.Sanitize | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/opcode/.Sanitize b/include/opcode/.Sanitize index 5d654e5..d7fed47 100644 --- a/include/opcode/.Sanitize +++ b/include/opcode/.Sanitize @@ -31,6 +31,14 @@ else lose_these_too="${d10v_files} ${lose_these_too}" fi +d30v_files="d30v.h" + +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 + v850_files="v850.h" if ( echo $* | grep keep\-v850 > /dev/null ) ; then @@ -141,6 +149,34 @@ else done fi +d30v_files="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 + v850_files="ChangeLog" if ( echo $* | grep keep\-v850 > /dev/null ) ; then for i in $v850_files ; do |