Special stuff to strip v9 out of sparc-opc.c
authorSteve Chamberlain <sac@cygnus>
Thu, 10 Sep 1992 17:20:10 +0000 (17:20 +0000)
committerSteve Chamberlain <sac@cygnus>
Thu, 10 Sep 1992 17:20:10 +0000 (17:20 +0000)
opcodes/.Sanitize

index 46543cbbb1642c2fa849b369283e9fa56e6d9a2b..f0d90f16da19710511484b69c45546c893f7bbc4 100644 (file)
@@ -32,6 +32,21 @@ z8k-opc.h
 
 Do-last:
 
+Do-last:
+
+if ( echo $* | grep keep\-v9 > /dev/null ) ; then
+       echo Keeping v9 in sparc-opc.c
+else
+       echo Sanitizing v9 in sparc-opc.c
+       rm -f new
+       grep -v v9 sparc-opc.c > new
+       if [ -n "${safe}" ] ; then
+               mv sparc-opc.c .Recover
+       else
+               rm sparc-opc.c
+       fi
+       mv new sparc-opc.c
+fi
 
 echo Done in `pwd`.