add sanitization of m32rx PIPE attribute, redact can do this more cleanly
[deliverable/binutils-gdb.git] / opcodes / .Sanitize
index f751d3dca034de0aadcb4ec4de98ff48fa96a36c..b53c650739315104d4a19476f59baef413fb5b6b 100644 (file)
@@ -112,6 +112,7 @@ sparc-dis.c
 sparc-opc.c
 stamp-h.in
 sysdep.h
+tic30-dis.c
 w65-dis.c
 w65-opc.h
 v850-opc.c
@@ -437,6 +438,36 @@ else
        done
 fi
 
+m32rx_files="ChangeLog m32r-opc.c m32r-opc.h m32r-dis.c m32r-asm.c"
+if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
+       for i in $m32rx_files ; do
+               if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping m32rx stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $m32rx_files ; do
+               if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"m32rx\" from $i...
+                       fi
+                       cp $i new
+                       # The PIPE sanitization will be much cleaner with redact.
+                       sed -e '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' \
+                               -e 's/, PIPE_[A-Z]*//g' < $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
This page took 0.023144 seconds and 4 git commands to generate.