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 cygnus_files="c-m32r.texi c-mips.texi as.texinfo"
64 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
65 for i in $cygnus_files ; do
66 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
67 if [ -n "${verbose}" ] ; then
68 echo Keeping cygnus stuff in $i
73 for i in $cygnus_files ; do
74 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
75 if [ -n "${verbose}" ] ; then
76 echo Removing traces of \"cygnus\" from $i...
79 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
80 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
81 if [ -n "${verbose}" ] ; then
82 echo Caching $i in .Recover...
91 r5900_files="c-mips.texi"
92 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
93 for i in $r5900_files ; do
94 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Keeping r5900 stuff in $i
102 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Removing traces of \"r5900\" from $i...
107 sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
108 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109 if [ -n "${verbose}" ] ; then
110 echo Caching $i in .Recover...
119 tx19_files="c-mips.texi"
120 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
121 for i in $tx19_files ; do
122 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
123 if [ -n "${verbose}" ] ; then
124 echo Keeping tx19 stuff in $i
130 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
131 if [ -n "${verbose}" ] ; then
132 echo Removing traces of \"tx19\" from $i...
135 sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/d' < $i > new
136 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
137 if [ -n "${verbose}" ] ; then
138 echo Caching $i in .Recover...
147 tx49_files="c-mips.texi"
148 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
149 for i in $tx49_files ; do
150 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
151 if [ -n "${verbose}" ] ; then
152 echo Keeping tx49 stuff in $i
158 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
159 if [ -n "${verbose}" ] ; then
160 echo Removing traces of \"tx49\" from $i...
163 sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/d' < $i > new
164 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
165 if [ -n "${verbose}" ] ; then
166 echo Caching $i in .Recover...
175 tx59_files="c-mips.texi"
176 if ( echo $* | grep keep\-tx59 > /dev/null ) ; then
177 for i in $tx59_files ; do
178 if test ! -d $i && (grep sanitize-tx59 $i > /dev/null) ; then
179 if [ -n "${verbose}" ] ; then
180 echo Keeping tx59 stuff in $i
186 if test ! -d $i && (grep sanitize-tx59 $i > /dev/null) ; then
187 if [ -n "${verbose}" ] ; then
188 echo Removing traces of \"tx59\" from $i...
191 sed '/start\-sanitize\-tx59/,/end\-sanitize\-tx59/d' < $i > new
192 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
193 if [ -n "${verbose}" ] ; then
194 echo Caching $i in .Recover...
203 vr4xxx_files="c-mips.texi"
204 if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
205 for i in $vr4xxx_files ; do
206 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
207 if [ -n "${verbose}" ] ; then
208 echo Keeping vr4xxx stuff in $i
213 for i in $vr4xxx_files ; do
214 if test -r $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
215 if [ -n "${verbose}" ] ; then
216 echo Removing traces of \"vr4xxx\" from $i...
219 sed '/start\-sanitize\-vr4xxx/,/end\-sanitize\-vr4xxx/d' < $i > new
220 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
221 if [ -n "${verbose}" ] ; then
222 echo Caching $i in .Recover...
231 vr4320_files="c-mips.texi"
232 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
233 for i in $vr4320_files ; do
234 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
235 if [ -n "${verbose}" ] ; then
236 echo Keeping vr4320 stuff in $i
241 for i in $vr4320_files ; do
242 if test -r $i && (grep sanitize-vr4320 $i > /dev/null) ; then
243 if [ -n "${verbose}" ] ; then
244 echo Removing traces of \"vr4320\" from $i...
247 sed '/start\-sanitize\-vr4320/,/end\-sanitize\-vr4320/d' < $i > new
248 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
249 if [ -n "${verbose}" ] ; then
250 echo Caching $i in .Recover...
260 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
261 echo '***' Some mentions of Sanitize are still left in $i! 1>&2