* cgen.h: New file.
[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.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 asintl.h
49 atof-generic.c
50 bignum-copy.c
51 bignum.h
52 bit_fix.h
53 cgen.c
54 cgen.h
55 cond.c
56 config
57 config-gas.com
58 config.in
59 configure
60 configure.bat
61 configure.in
62 debug.c
63 dep-in.sed
64 depend.c
65 doc
66 ecoff.c
67 ecoff.h
68 ehopt.c
69 emul-target.h
70 emul.h
71 expr.c
72 expr.h
73 flonum-copy.c
74 flonum-konst.c
75 flonum-mult.c
76 flonum.h
77 frags.c
78 frags.h
79 gasp.c
80 gdbinit.in
81 hash.c
82 hash.h
83 input-file.c
84 input-file.h
85 input-scrub.c
86 itbl-lex.l
87 itbl-ops.c
88 itbl-ops.h
89 itbl-parse.y
90 link.cmd
91 listing.c
92 listing.h
93 literal.c
94 mac-as.r
95 macro.c
96 macro.h
97 makefile.vms
98 messages.c
99 mpw-config.in
100 mpw-make.sed
101 obj.h
102 output-file.c
103 output-file.h
104 po
105 read.c
106 read.h
107 sb.c
108 sb.h
109 stabs.c
110 stamp-h.in
111 struc-symbol.h
112 subsegs.c
113 subsegs.h
114 symbols.c
115 symbols.h
116 tc.h
117 testsuite
118 vmsconf.sh
119 write.c
120 write.h
121
122 Things-to-lose:
123
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
130 Do-last:
131
132 v850_files="ChangeLog configure.in configure"
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
159
160 r5900_files="ChangeLog configure configure.in"
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
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
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
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
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
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
300 d30v_files="ChangeLog configure configure.in"
301 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
302 for i in $d30v_files ; do
303 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
304 if [ -n "${verbose}" ] ; then
305 echo Keeping d30v stuff in $i
306 fi
307 fi
308 done
309 else
310 for i in $d30v_files ; do
311 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
312 if [ -n "${verbose}" ] ; then
313 echo Removing traces of \"d30v\" from $i...
314 fi
315 cp $i new
316 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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
328 m32rx_files="ChangeLog configure.in configure"
329 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
330 for i in $m32rx_files ; do
331 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
332 if [ -n "${verbose}" ] ; then
333 echo Keeping m32rx stuff in $i
334 fi
335 fi
336 done
337 else
338 for i in $m32rx_files ; do
339 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
340 if [ -n "${verbose}" ] ; then
341 echo Removing traces of \"m32rx\" from $i...
342 fi
343 cp $i new
344 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/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
350 fi
351 mv new $i
352 fi
353 done
354 fi
355 if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then
356 for i in $m32rx_files ; do
357 if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
358 if [ -n "${verbose}" ] ; then
359 echo Keeping m32rx stuff in $i
360 fi
361 fi
362 done
363 else
364 for i in $m32rx_files ; do
365 if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
366 if [ -n "${verbose}" ] ; then
367 echo Removing traces of \"m32rx\" from $i...
368 fi
369 cp $i new
370 sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/d' < $i > new
371 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
372 if [ -n "${verbose}" ] ; then
373 echo Caching $i in .Recover...
374 fi
375 mv $i .Recover
376 fi
377 mv new $i
378 fi
379 done
380 fi
381
382 sky_files="ChangeLog configure.in configure"
383 if ( echo $* | grep keep\-sky > /dev/null ) ; then
384 for i in $sky_files ; do
385 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
386 if [ -n "${verbose}" ] ; then
387 echo Keeping sky stuff in $i
388 fi
389 fi
390 done
391 else
392 for i in $sky_files ; do
393 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
394 if [ -n "${verbose}" ] ; then
395 echo Removing traces of \"sky\" from $i...
396 fi
397 cp $i new
398 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/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
409
410 vr4320_files="ChangeLog"
411 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
412 for i in $vr4320_files ; do
413 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
414 if [ -n "${verbose}" ] ; then
415 echo Keeping vr4320 stuff in $i
416 fi
417 fi
418 done
419 else
420 for i in $vr4320_files ; do
421 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
422 if [ -n "${verbose}" ] ; then
423 echo Removing traces of \"vr4320\" from $i...
424 fi
425 cp $i new
426 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
427 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
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
438 for i in * ; do
439 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
440 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
441 fi
442 done
443
444
445 # This must come after all other sanitizations. Re-sanitize the .pot
446 # file.
447 if [ -n "${verbose}" ]; then
448 echo Re-computing files for gettext ...
449 fi
450
451 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
452 if [ -n "${verbose}" ]; then
453 echo Caching po/POTFILES.in in .Recover...
454 fi
455 mv po/POTFILES.in po/.Recover
456 fi
457 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
458
459 if [ -n "${safe}" -a ! -f po/.Recover/gas.pot ]; then
460 if [ -n "${verbose}" ]; then
461 echo Caching po/gas.pot in .Recover...
462 fi
463 mv po/gas.pot po/.Recover
464 fi
465 # If this fails, Sanitization must fail.
466 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/gas.pot || exit 1
467
468 # eof
This page took 0.105858 seconds and 4 git commands to generate.