Rearrange ChangeLog files by years.
[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 # "Do-last:" 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-9295
37 ChangeLog-9697
38 Makefile.am
39 Makefile.in
40 NEWS
41 README
42 README-vms
43 acconfig.h
44 acinclude.m4
45 aclocal.m4
46 app.c
47 as.c
48 as.h
49 asintl.h
50 atof-generic.c
51 bignum-copy.c
52 bignum.h
53 bit_fix.h
54 cgen.c
55 cgen.h
56 cond.c
57 config
58 config-gas.com
59 config.in
60 configure
61 configure.bat
62 configure.in
63 debug.c
64 dep-in.sed
65 depend.c
66 doc
67 ecoff.c
68 ecoff.h
69 ehopt.c
70 emul-target.h
71 emul.h
72 expr.c
73 expr.h
74 flonum-copy.c
75 flonum-konst.c
76 flonum-mult.c
77 flonum.h
78 frags.c
79 frags.h
80 gasp.c
81 gdbinit.in
82 hash.c
83 hash.h
84 input-file.c
85 input-file.h
86 input-scrub.c
87 itbl-lex.l
88 itbl-ops.c
89 itbl-ops.h
90 itbl-parse.y
91 link.cmd
92 listing.c
93 listing.h
94 literal.c
95 mac-as.r
96 macro.c
97 macro.h
98 makefile.vms
99 messages.c
100 mpw-config.in
101 mpw-make.sed
102 obj.h
103 output-file.c
104 output-file.h
105 po
106 read.c
107 read.h
108 sb.c
109 sb.h
110 stabs.c
111 stamp-h.in
112 struc-symbol.h
113 subsegs.c
114 subsegs.h
115 symbols.c
116 symbols.h
117 tc.h
118 testsuite
119 vmsconf.sh
120 write.c
121 write.h
122
123 Things-to-lose:
124
125
126
127 # The lines between the "Do-last:" line and the end of the file
128 # are executed as a /bin/sh shell script after everything else is
129 # done.
130
131 Do-last:
132
133 v850_files="ChangeLog ChangeLog-9697 configure.in configure"
134 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
135 for i in $v850_files ; do
136 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
137 if [ -n "${verbose}" ] ; then
138 echo Keeping v850e stuff in $i
139 fi
140 fi
141 done
142 else
143 for i in $v850_files ; do
144 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
145 if [ -n "${verbose}" ] ; then
146 echo Removing traces of \"v850e\" from $i...
147 fi
148 cp $i new
149 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
150 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
151 if [ -n "${verbose}" ] ; then
152 echo Caching $i in .Recover...
153 fi
154 mv $i .Recover
155 fi
156 mv new $i
157 fi
158 done
159 fi
160
161 r5900_files="ChangeLog ChangeLog-9697 configure configure.in"
162 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
163 for i in $r5900_files ; do
164 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
165 if [ -n "${verbose}" ] ; then
166 echo Keeping r5900 stuff in $i
167 fi
168 fi
169 done
170 else
171 for i in $r5900_files ; do
172 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
173 if [ -n "${verbose}" ] ; then
174 echo Removing traces of \"r5900\" from $i...
175 fi
176 cp $i new
177 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
178 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
179 if [ -n "${verbose}" ] ; then
180 echo Caching $i in .Recover...
181 fi
182 mv $i .Recover
183 fi
184 mv new $i
185 fi
186 done
187 fi
188
189 vr5400_files="ChangeLog ChangeLog-9697"
190 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
191 for i in $vr5400_files ; do
192 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
193 if [ -n "${verbose}" ] ; then
194 echo Keeping vr5400 stuff in $i
195 fi
196 fi
197 done
198 else
199 for i in $vr5400_files ; do
200 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
201 if [ -n "${verbose}" ] ; then
202 echo Removing traces of \"vr5400\" from $i...
203 fi
204 cp $i new
205 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
206 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
207 if [ -n "${verbose}" ] ; then
208 echo Caching $i in .Recover...
209 fi
210 mv $i .Recover
211 fi
212 mv new $i
213 fi
214 done
215 fi
216
217 tx19_files="ChangeLog ChangeLog-9697"
218 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
219 for i in $tx19_files ; do
220 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
221 if [ -n "${verbose}" ] ; then
222 echo Keeping tx19 stuff in $i
223 fi
224 fi
225 done
226 else
227 for i in $tx19_files ; do
228 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
229 if [ -n "${verbose}" ] ; then
230 echo Removing traces of \"tx19\" from $i...
231 fi
232 cp $i new
233 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
234 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
235 if [ -n "${verbose}" ] ; then
236 echo Caching $i in .Recover...
237 fi
238 mv $i .Recover
239 fi
240 mv new $i
241 fi
242 done
243 fi
244
245 tx49_files="ChangeLog ChangeLog-9697"
246 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
247 for i in $tx49_files ; do
248 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
249 if [ -n "${verbose}" ] ; then
250 echo Keeping tx49 stuff in $i
251 fi
252 fi
253 done
254 else
255 for i in $tx49_files ; do
256 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
257 if [ -n "${verbose}" ] ; then
258 echo Removing traces of \"tx49\" from $i...
259 fi
260 cp $i new
261 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
262 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
263 if [ -n "${verbose}" ] ; then
264 echo Caching $i in .Recover...
265 fi
266 mv $i .Recover
267 fi
268 mv new $i
269 fi
270 done
271 fi
272
273 tic80_files="ChangeLog ChangeLog-9697 configure.in configure"
274 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
275 for i in $tic80_files ; do
276 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
277 if [ -n "${verbose}" ] ; then
278 echo Keeping tic80 stuff in $i
279 fi
280 fi
281 done
282 else
283 for i in $tic80_files ; do
284 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
285 if [ -n "${verbose}" ] ; then
286 echo Removing traces of \"tic80\" from $i...
287 fi
288 cp $i new
289 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
290 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
291 if [ -n "${verbose}" ] ; then
292 echo Caching $i in .Recover...
293 fi
294 mv $i .Recover
295 fi
296 mv new $i
297 fi
298 done
299 fi
300
301 am33_files="ChangeLog"
302 if ( echo $* | grep keep\-am33 > /dev/null ) ; then
303 for i in $am33_files ; do
304 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
305 if [ -n "${verbose}" ] ; then
306 echo Keeping am33 stuff in $i
307 fi
308 fi
309 done
310 else
311 for i in $am33_files ; do
312 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
313 if [ -n "${verbose}" ] ; then
314 echo Removing traces of \"am33\" from $i...
315 fi
316 cp $i new
317 sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new
318 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
319 if [ -n "${verbose}" ] ; then
320 echo Caching $i in .Recover...
321 fi
322 mv $i .Recover
323 fi
324 mv new $i
325 fi
326 done
327 fi
328
329 d30v_files="ChangeLog ChangeLog-9697 configure configure.in"
330 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
331 for i in $d30v_files ; do
332 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
333 if [ -n "${verbose}" ] ; then
334 echo Keeping d30v stuff in $i
335 fi
336 fi
337 done
338 else
339 for i in $d30v_files ; do
340 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
341 if [ -n "${verbose}" ] ; then
342 echo Removing traces of \"d30v\" from $i...
343 fi
344 cp $i new
345 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
346 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
347 if [ -n "${verbose}" ] ; then
348 echo Caching $i in .Recover...
349 fi
350 mv $i .Recover
351 fi
352 mv new $i
353 fi
354 done
355 fi
356
357 m32rx_files="ChangeLog ChangeLog-9697 configure.in configure"
358 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
359 for i in $m32rx_files ; do
360 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
361 if [ -n "${verbose}" ] ; then
362 echo Keeping m32rx stuff in $i
363 fi
364 fi
365 done
366 else
367 for i in $m32rx_files ; do
368 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
369 if [ -n "${verbose}" ] ; then
370 echo Removing traces of \"m32rx\" from $i...
371 fi
372 cp $i new
373 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
374 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
375 if [ -n "${verbose}" ] ; then
376 echo Caching $i in .Recover...
377 fi
378 mv $i .Recover
379 fi
380 mv new $i
381 fi
382 done
383 fi
384 if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then
385 for i in $m32rx_files ; do
386 if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
387 if [ -n "${verbose}" ] ; then
388 echo Keeping m32rx stuff in $i
389 fi
390 fi
391 done
392 else
393 for i in $m32rx_files ; do
394 if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
395 if [ -n "${verbose}" ] ; then
396 echo Removing traces of \"m32rx\" from $i...
397 fi
398 cp $i new
399 sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/d' < $i > new
400 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
401 if [ -n "${verbose}" ] ; then
402 echo Caching $i in .Recover...
403 fi
404 mv $i .Recover
405 fi
406 mv new $i
407 fi
408 done
409 fi
410
411 sky_files="ChangeLog configure.in configure"
412 if ( echo $* | grep keep\-sky > /dev/null ) ; then
413 for i in $sky_files ; do
414 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
415 if [ -n "${verbose}" ] ; then
416 echo Keeping sky stuff in $i
417 fi
418 fi
419 done
420 else
421 for i in $sky_files ; do
422 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
423 if [ -n "${verbose}" ] ; then
424 echo Removing traces of \"sky\" from $i...
425 fi
426 cp $i new
427 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
428 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
429 if [ -n "${verbose}" ] ; then
430 echo Caching $i in .Recover...
431 fi
432 mv $i .Recover
433 fi
434 mv new $i
435 fi
436 done
437 fi
438
439 vr4320_files="ChangeLog"
440 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
441 for i in $vr4320_files ; do
442 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
443 if [ -n "${verbose}" ] ; then
444 echo Keeping vr4320 stuff in $i
445 fi
446 fi
447 done
448 else
449 for i in $vr4320_files ; do
450 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
451 if [ -n "${verbose}" ] ; then
452 echo Removing traces of \"vr4320\" from $i...
453 fi
454 cp $i new
455 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
456 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
457 if [ -n "${verbose}" ] ; then
458 echo Caching $i in .Recover...
459 fi
460 mv $i .Recover
461 fi
462 mv new $i
463 fi
464 done
465 fi
466
467 branchbug4011_files="ChangeLog"
468 if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then
469 for i in $branchbug4011_files ; do
470 if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
471 if [ -n "${verbose}" ] ; then
472 echo Keeping branchbug4011 stuff in $i
473 fi
474 fi
475 done
476 else
477 for i in $branchbug4011_files ; do
478 if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
479 if [ -n "${verbose}" ] ; then
480 echo Removing traces of \"branchbug4011\" from $i...
481 fi
482 cp $i new
483 sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/d' < $i > new
484 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
485 if [ -n "${verbose}" ] ; then
486 echo Caching $i in .Recover...
487 fi
488 mv $i .Recover
489 fi
490 mv new $i
491 fi
492 done
493 fi
494
495 for i in * ; do
496 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
497 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
498 fi
499 done
500
501
502 # This must come after all other sanitizations. Re-sanitize the .pot
503 # file.
504 if [ -n "${verbose}" ]; then
505 echo Re-computing files for gettext ...
506 fi
507
508 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
509 if [ -n "${verbose}" ]; then
510 echo Caching po/POTFILES.in in .Recover...
511 fi
512 mv po/POTFILES.in po/.Recover
513 fi
514 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
515
516 if [ -n "${safe}" -a ! -f po/.Recover/gas.pot ]; then
517 if [ -n "${verbose}" ]; then
518 echo Caching po/gas.pot in .Recover...
519 fi
520 mv po/gas.pot po/.Recover
521 fi
522 # If this fails, Sanitization must fail.
523 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/gas.pot || exit 1
524
525 # eof
This page took 0.04083 seconds and 4 git commands to generate.