Added m32rx sanitization.
authorNick Clifton <nickc@redhat.com>
Tue, 16 Dec 1997 14:54:08 +0000 (14:54 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 16 Dec 1997 14:54:08 +0000 (14:54 +0000)
gas/.Sanitize
gas/ChangeLog
gas/config/.Sanitize
gas/doc/.Sanitize
gas/doc/as.texinfo

index 1bf1dd5..0c8d0f7 100644 (file)
@@ -347,6 +347,34 @@ else
        done
 fi
 
+m32rx_files="ChangeLog configure.in configure"
+if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
+       for i in $m32rx_files ; do
+               if test ! -d $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 ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"m32rx\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/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
index 1b0c420..500d79d 100644 (file)
@@ -25,11 +25,13 @@ Mon Dec 15 15:20:32 1997  Nick Clifton  <nickc@cygnus.com>
 
        * doc/c-m32r.texi: New file, documenting m32r specific features.  
 
+start-sanitize-m32rx
        * config/tc-m32r.c (allow_m32rx): New function.
        (enable_m32rx): New variable.
        (md_pseudo_table): Added .m32r and .m32rx pseudo ops
        (md_show_usage): Document new --m32rx command line option.
        (md_parse_option): Implement new --m32rx command line option.
+end-sanitize-m32rx
 
 Mon Dec 15 10:32:28 1997  Jeffrey A Law  (law@cygnus.com)
 
index e864da1..fe1a6c5 100644 (file)
@@ -376,4 +376,38 @@ else
        done
 fi
 
+m32rx_files="tc-m32r.c tc-m32r.h"
+if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
+       for i in $m32rx_files ; do
+               if test ! -d $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 -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"m32rx\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/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
+       fi
+done
+
 # End of file.
index c7bf5e3..f4798da 100644 (file)
@@ -82,6 +82,34 @@ else
        done
 fi
 
+m32rx_files="c-m32rx.texi as.texinfo"
+if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
+       for i in $m32rx_files ; do
+               if test ! -d $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 ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"m32rx\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/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
+
 # Don't try to clean directories here, as the 'mv' command will fail.
 # Also, grep fails on NFS mounted directories.
 
index 8432f55..2788d0a 100644 (file)
@@ -240,9 +240,11 @@ Here is a brief summary of how to invoke @code{@value{AS}}.  For details,
  [ -ACA | -ACA_A | -ACB | -ACC | -AKA | -AKB | -AKC | -AMC ]
  [ -b ] [ -no-relax ]
 @end ifset
+@c start-sanitize-m32rx
 @ifset M32R
  [ --m32rx ]
 @end ifset
+@c start-sanitize-m32rx
 @ifset M680X0
  [ -l ] [ -m68000 | -m68010 | -m68020 | ... ]
 @end ifset
@@ -426,6 +428,7 @@ error if necessary.
 @end table
 @end ifset
 
+@c start-sanitize-m32rx
 @ifset M32R
 The following options are available when @value{AS} is configured for the
 Mitsubishi M32R series.
@@ -438,6 +441,7 @@ is normally the M32R, but this option changes it to the M32RX.
 
 @end table
 @end ifset
+@c end-sanitize-m32rx
 
 @ifset M680X0
 The following options are available when @value{AS} is configured for the