diff options
Diffstat (limited to 'opcodes/.Sanitize')
-rw-r--r-- | opcodes/.Sanitize | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize index 32fe276..72d7aa7 100644 --- a/opcodes/.Sanitize +++ b/opcodes/.Sanitize @@ -186,6 +186,34 @@ else done fi +armelf_files="ChangeLog arm-dis.c" +if ( echo $* | grep keep\-armelf > /dev/null ) ; then + for i in $armelf_files ; do + if test ! -d $i && (grep sanitize-armelf $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping armelf stuff in $i + fi + fi + done +else + for i in $armelf_files ; do + if test ! -d $i && (grep sanitize-armelf $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"armelf\" from $i... + fi + cp $i new + sed '/start\-sanitize\-armelf/,/end-\sanitize\-armelf/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 + v850e_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c v850-opc.c v850-dis.c" if ( echo $* | grep keep\-v850e > /dev/null ) ; then for i in $v850e_files ; do |