4d6615789c10a9a630261963d74034f567a6eba8
[deliverable/binutils-gdb.git] / gas / .Sanitize
1 # .Sanitize for devo/gas.
2
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.
7
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
10 # out.
11
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.
15
16 Do-first:
17
18 lose_these_too=""
19 for d in obsolete regress regress.m68k testscripts ; do
20 if [ -d $d ]; then
21 lose_these_too="${lose_these_too} $d"
22 fi
23 done
24
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
29 # with rm -rf.
30
31 Things-to-keep:
32
33 CONTRIBUTORS
34 COPYING
35 ChangeLog
36 ChangeLog.1
37 Makefile.am
38 Makefile.in
39 NEWS
40 README
41 README-vms
42 acconfig.h
43 acinclude.m4
44 aclocal.m4
45 app.c
46 as.c
47 as.h
48 atof-generic.c
49 bignum-copy.c
50 bignum.h
51 bit_fix.h
52 cgen.c
53 cond.c
54 config
55 config.in
56 config-gas.com
57 configure
58 configure.bat
59 configure.in
60 debug.c
61 dep-in.sed
62 depend.c
63 doc
64 ecoff.c
65 ecoff.h
66 ehopt.c
67 emul-target.h
68 emul.h
69 expr.c
70 expr.h
71 flonum-copy.c
72 flonum-konst.c
73 flonum-mult.c
74 flonum.h
75 frags.c
76 frags.h
77 gasp.c
78 gdbinit.in
79 hash.c
80 hash.h
81 input-file.c
82 input-file.h
83 input-scrub.c
84 link.cmd
85 listing.c
86 listing.h
87 literal.c
88 itbl-lex.l
89 itbl-ops.c
90 itbl-ops.h
91 itbl-parse.y
92 mac-as.r
93 macro.c
94 macro.h
95 makefile.vms
96 messages.c
97 mpw-config.in
98 mpw-make.sed
99 obj.h
100 output-file.c
101 output-file.h
102 read.c
103 read.h
104 sb.c
105 sb.h
106 stabs.c
107 stamp-h.in
108 struc-symbol.h
109 subsegs.c
110 subsegs.h
111 symbols.c
112 symbols.h
113 tc.h
114 testsuite
115 vmsconf.sh
116 write.c
117 write.h
118
119 Things-to-lose:
120
121 Do-last:
122
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
129 fi
130 fi
131 done
132 else
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...
137 fi
138 cp $i new
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...
143 fi
144 mv $i .Recover
145 fi
146 mv new $i
147 fi
148 done
149 fi
150
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
157 fi
158 fi
159 done
160 else
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...
165 fi
166 cp $i new
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...
171 fi
172 mv $i .Recover
173 fi
174 mv new $i
175 fi
176 done
177 fi
178
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
185 fi
186 fi
187 done
188 else
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...
193 fi
194 cp $i new
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...
199 fi
200 mv $i .Recover
201 fi
202 mv new $i
203 fi
204 done
205 fi
206
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
213 fi
214 fi
215 done
216 else
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...
221 fi
222 cp $i new
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...
227 fi
228 mv $i .Recover
229 fi
230 mv new $i
231 fi
232 done
233 fi
234
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
241 fi
242 fi
243 done
244 else
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...
249 fi
250 cp $i new
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...
255 fi
256 mv $i .Recover
257 fi
258 mv new $i
259 fi
260 done
261 fi
262
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
269 fi
270 fi
271 done
272 else
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...
277 fi
278 cp $i new
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...
283 fi
284 mv $i .Recover
285 fi
286 mv new $i
287 fi
288 done
289 fi
290
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
297 fi
298 fi
299 done
300 else
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...
305 fi
306 cp $i new
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...
311 fi
312 mv $i .Recover
313 fi
314 mv new $i
315 fi
316 done
317 fi
318
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
325 fi
326 fi
327 done
328 else
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...
333 fi
334 cp $i new
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...
339 fi
340 mv $i .Recover
341 fi
342 mv new $i
343 fi
344 done
345 fi
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
351 fi
352 fi
353 done
354 else
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...
359 fi
360 cp $i new
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...
365 fi
366 mv $i .Recover
367 fi
368 mv new $i
369 fi
370 done
371 fi
372
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
379 fi
380 fi
381 done
382 else
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...
387 fi
388 cp $i new
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...
393 fi
394 mv $i .Recover
395 fi
396 mv new $i
397 fi
398 done
399 fi
400
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
407 fi
408 fi
409 done
410 else
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...
415 fi
416 cp $i new
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...
421 fi
422 mv $i .Recover
423 fi
424 mv new $i
425 fi
426 done
427 fi
428
429 for i in * ; do
430 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
431 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
432 fi
433 done
434
435 #
436 # End of file.
This page took 0.06454 seconds and 4 git commands to generate.