1 # .Sanitize for devo/gas/doc
3 # Each directory to survive its way into a release will need a file
4 # like this one called "./.Sanitize". All keyword lines must exist,
5 # and must exist in the order specified by this file. Each directory
6 # in the tree will be processed, top down, in the following order.
8 # Hash started lines like this one are comments and will be deleted
9 # before anything else is done. Blank lines will also be squashed
12 # The lines between the "Do-first:" line and the "Things-to-keep:"
13 # line are executed as a /bin/sh shell script before anything else is
14 # done in this directory.
18 # All files listed between the "Things-to-keep:" line and the
19 # "Do-last:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
57 # The lines between the "Do-last:" line and the end of the file
58 # are executed as a /bin/sh shell script after everything else is
63 v850e_files="c-v850.texi"
64 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
65 for i in $v850e_files ; do
66 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
67 if [ -n "${verbose}" ] ; then
68 echo Keeping v850e stuff in $i
73 for i in $v850e_files ; do
74 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
75 if [ -n "${verbose}" ] ; then
76 echo Removing traces of \"v850e\" from $i...
79 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
80 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
81 if [ -n "${verbose}" ] ; then
82 echo Caching $i in .Recover...
91 m32rx_files="c-m32r.texi as.texinfo"
92 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
93 for i in $m32rx_files ; do
94 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Keeping m32rx stuff in $i
101 for i in $m32rx_files ; do
102 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Removing traces of \"m32rx\" from $i...
107 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
108 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109 if [ -n "${verbose}" ] ; then
110 echo Caching $i in .Recover...
120 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
121 echo '***' Some mentions of Sanitize are still left in $i! 1>&2