1 # .Sanitize for devo/gas.
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.
19 for d in obsolete regress regress.m68k testscripts ; do
21 lose_these_too="${lose_these_too} $d"
25 # All files listed between the "Things-to-keep:" line and the
26 # "Files-to-sed:" line will be kept. All other files will be removed.
27 # Directories listed in this section will have their own Sanitize
28 # called. Directories not listed will be removed in their entirety
123 v850_files="ChangeLog configure.in configure"
124 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
125 for i in $v850_files ; do
126 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
127 if [ -n "${verbose}" ] ; then
128 echo Keeping v850e stuff in $i
133 for i in $v850_files ; do
134 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
135 if [ -n "${verbose}" ] ; then
136 echo Removing traces of \"v850e\" from $i...
139 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
140 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
141 if [ -n "${verbose}" ] ; then
142 echo Caching $i in .Recover...
151 r5900_files="ChangeLog configure configure.in"
152 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
153 for i in $r5900_files ; do
154 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
155 if [ -n "${verbose}" ] ; then
156 echo Keeping r5900 stuff in $i
161 for i in $r5900_files ; do
162 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
163 if [ -n "${verbose}" ] ; then
164 echo Removing traces of \"r5900\" from $i...
167 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
168 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
169 if [ -n "${verbose}" ] ; then
170 echo Caching $i in .Recover...
179 vr5400_files="ChangeLog"
180 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
181 for i in $vr5400_files ; do
182 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
183 if [ -n "${verbose}" ] ; then
184 echo Keeping vr5400 stuff in $i
189 for i in $vr5400_files ; do
190 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
191 if [ -n "${verbose}" ] ; then
192 echo Removing traces of \"vr5400\" from $i...
195 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
196 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
197 if [ -n "${verbose}" ] ; then
198 echo Caching $i in .Recover...
207 tx19_files="ChangeLog"
208 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
209 for i in $tx19_files ; do
210 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
211 if [ -n "${verbose}" ] ; then
212 echo Keeping tx19 stuff in $i
217 for i in $tx19_files ; do
218 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
219 if [ -n "${verbose}" ] ; then
220 echo Removing traces of \"tx19\" from $i...
223 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
224 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
225 if [ -n "${verbose}" ] ; then
226 echo Caching $i in .Recover...
235 tx49_files="ChangeLog"
236 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
237 for i in $tx49_files ; do
238 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
239 if [ -n "${verbose}" ] ; then
240 echo Keeping tx49 stuff in $i
245 for i in $tx49_files ; do
246 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
247 if [ -n "${verbose}" ] ; then
248 echo Removing traces of \"tx49\" from $i...
251 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
252 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
253 if [ -n "${verbose}" ] ; then
254 echo Caching $i in .Recover...
263 tic80_files="ChangeLog configure.in configure"
264 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
265 for i in $tic80_files ; do
266 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
267 if [ -n "${verbose}" ] ; then
268 echo Keeping tic80 stuff in $i
273 for i in $tic80_files ; do
274 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
275 if [ -n "${verbose}" ] ; then
276 echo Removing traces of \"tic80\" from $i...
279 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
280 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
281 if [ -n "${verbose}" ] ; then
282 echo Caching $i in .Recover...
291 d30v_files="ChangeLog configure configure.in"
292 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
293 for i in $d30v_files ; do
294 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
295 if [ -n "${verbose}" ] ; then
296 echo Keeping d30v stuff in $i
301 for i in $d30v_files ; do
302 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
303 if [ -n "${verbose}" ] ; then
304 echo Removing traces of \"d30v\" from $i...
307 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
308 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
309 if [ -n "${verbose}" ] ; then
310 echo Caching $i in .Recover...
319 m32rx_files="ChangeLog configure.in configure"
320 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
321 for i in $m32rx_files ; do
322 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
323 if [ -n "${verbose}" ] ; then
324 echo Keeping m32rx stuff in $i
329 for i in $m32rx_files ; do
330 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
331 if [ -n "${verbose}" ] ; then
332 echo Removing traces of \"m32rx\" from $i...
335 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
336 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
337 if [ -n "${verbose}" ] ; then
338 echo Caching $i in .Recover...
346 if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then
347 for i in $m32rx_files ; do
348 if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
349 if [ -n "${verbose}" ] ; then
350 echo Keeping m32rx stuff in $i
355 for i in $m32rx_files ; do
356 if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
357 if [ -n "${verbose}" ] ; then
358 echo Removing traces of \"m32rx\" from $i...
361 sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/d' < $i > new
362 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
363 if [ -n "${verbose}" ] ; then
364 echo Caching $i in .Recover...
373 sky_files="ChangeLog configure.in configure"
374 if ( echo $* | grep keep\-sky > /dev/null ) ; then
375 for i in $sky_files ; do
376 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
377 if [ -n "${verbose}" ] ; then
378 echo Keeping sky stuff in $i
383 for i in $sky_files ; do
384 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
385 if [ -n "${verbose}" ] ; then
386 echo Removing traces of \"sky\" from $i...
389 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
390 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
391 if [ -n "${verbose}" ] ; then
392 echo Caching $i in .Recover...
401 vr4320_files="ChangeLog"
402 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
403 for i in $vr4320_files ; do
404 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
405 if [ -n "${verbose}" ] ; then
406 echo Keeping vr4320 stuff in $i
411 for i in $vr4320_files ; do
412 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
413 if [ -n "${verbose}" ] ; then
414 echo Removing traces of \"vr4320\" from $i...
417 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
418 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
419 if [ -n "${verbose}" ] ; then
420 echo Caching $i in .Recover...
430 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
431 echo '***' Some mentions of Sanitize are still left in $i! 1>&2