diff options
Diffstat (limited to 'gas/doc/.Sanitize')
-rw-r--r-- | gas/doc/.Sanitize | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gas/doc/.Sanitize b/gas/doc/.Sanitize index c7bf5e3..f4798da 100644 --- a/gas/doc/.Sanitize +++ b/gas/doc/.Sanitize @@ -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. |