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