oops - fixed bugs in new v850e/q rules.
[deliverable/binutils-gdb.git] / bfd / .Sanitize
1 # .Sanitize for devo/bfd.
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 d30v_files="cpu-d30v.c elf32-d30v.c"
19
20 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21 keep_these_too="${d30v_files} ${keep_these_too}"
22 else
23 lose_these_too="${d30v_files} ${lose_these_too}"
24 fi
25
26 v850_files="elf32-v850.c"
27
28 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
29 keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}"
30 lose_these_too="cpu-v850e.c cpu-v850eq.c ${lose_these_too}"
31 else
32 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
33 keep_these_too="cpu-v850e.c ${v850_files} ${keep_these_too}"
34 lose_these_too="cpu-v850.c cpu-v850eq.c ${lose_these_too}"
35 else
36 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
37 keep_these_too="cpu-v850eq.c ${v850_files} ${keep_these_too}"
38 lose_these_too="cpu-v850.c cpu-v850e.c ${lose_these_too}"
39 else
40 lose_these_too="cpu-v850.c cpu-v850e.c cpu-v850eq.c ${v850_files} ${lose_these_too}"
41 fi
42 fi
43 fi
44
45 tic80_files="cpu-tic80.c coff-tic80.c"
46
47 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
48 keep_these_too="${tic80_files} ${keep_these_too}"
49 else
50 lose_these_too="${tic80_files} ${lose_these_too}"
51 fi
52
53 # All files listed between the "Things-to-keep:" line and the
54 # "Files-to-sed:" line will be kept. All other files will be removed.
55 # Directories listed in this section will have their own Sanitize
56 # called. Directories not listed will be removed in their entirety
57 # with rm -rf.
58
59 Things-to-keep:
60
61 COPYING
62 ChangeLog
63 ChangeLog.1
64 ChangeLog.2
65 Makefile.am
66 Makefile.in
67 PORTING
68 README
69 TODO
70 acconfig.h
71 acinclude.m4
72 aclocal.m4
73 aix386-core.c
74 aout-adobe.c
75 aout-arm.c
76 aout-encap.c
77 aout-ns32k.c
78 aout-sparcle.c
79 aout-target.h
80 aout0.c
81 aout32.c
82 aout64.c
83 aoutf1.h
84 aoutx.h
85 archive.c
86 archures.c
87 bfd-in.h
88 bfd-in2.h
89 bfd.c
90 binary.c
91 bout.c
92 cache.c
93 cf-i386lynx.c
94 cf-m68klynx.c
95 cf-sparclynx.c
96 cisco-core.c
97 coff-a29k.c
98 coff-alpha.c
99 coff-apollo.c
100 coff-arm.c
101 coff-aux.c
102 coff-go32.c
103 coff-h8300.c
104 coff-h8500.c
105 coff-i386.c
106 coff-i860.c
107 coff-i960.c
108 coff-m68k.c
109 coff-m88k.c
110 coff-mips.c
111 coff-pmac.c
112 coff-ppc.c
113 coff-rs6000.c
114 coff-sh.c
115 coff-sparc.c
116 coff-stgo32.c
117 coff-svm68k.c
118 coff-u68k.c
119 coff-we32k.c
120 coff-w65.c
121 coff-z8k.c
122 coffcode.h
123 coffgen.c
124 cofflink.c
125 coffswap.h
126 config.bfd
127 config.in
128 configure
129 configure.bat
130 configure.com
131 configure.host
132 configure.in
133 corefile.c
134 cpu-a29k.c
135 cpu-alpha.c
136 cpu-arc.c
137 cpu-arm.c
138 cpu-d10v.c
139 cpu-h8300.c
140 cpu-h8500.c
141 cpu-hppa.c
142 cpu-i386.c
143 cpu-i860.c
144 cpu-i960.c
145 cpu-m32r.c
146 cpu-m68k.c
147 cpu-m88k.c
148 cpu-mips.c
149 cpu-m10200.c
150 cpu-m10300.c
151 cpu-ns32k.c
152 cpu-powerpc.c
153 cpu-rs6000.c
154 cpu-sh.c
155 cpu-sparc.c
156 cpu-vax.c
157 cpu-we32k.c
158 cpu-w65.c
159 cpu-z8k.c
160 demo64.c
161 dep-in.sed
162 doc
163 ecoff.c
164 ecofflink.c
165 ecoffswap.h
166 elf-bfd.h
167 elf.c
168 elf32-arc.c
169 elf32-d10v.c
170 elf32-gen.c
171 elf32-hppa.c
172 elf32-hppa.h
173 elf32-i386.c
174 elf32-i860.c
175 elf32-m32r.c
176 elf32-m68k.c
177 elf32-m88k.c
178 elf32-mips.c
179 elf-m10200.c
180 elf-m10300.c
181 elf32-ppc.c
182 elf32-sh.c
183 elf32-sparc.c
184 elf32.c
185 elf64-alpha.c
186 elf64-gen.c
187 elf64-mips.c
188 elf64-sparc.c
189 elf64.c
190 elfxx-target.h
191 elfcode.h
192 elfcore.h
193 elflink.c
194 elflink.h
195 evax.h
196 evax-alpha.c
197 evax-egsd.c
198 evax-emh.c
199 evax-etir.c
200 evax-misc.c
201 filemode.c
202 format.c
203 freebsd.h
204 gen-aout.c
205 genlink.h
206 go32stub.h
207 hash.c
208 host-aout.c
209 hosts
210 hp300bsd.c
211 hp300hpux.c
212 hppa_stubs.h
213 hppabsd-core.c
214 hpux-core.c
215 i386aout.c
216 i386bsd.c
217 i386dynix.c
218 i386freebsd.c
219 i386linux.c
220 i386netbsd.c
221 i386lynx.c
222 i386mach3.c
223 i386msdos.c
224 i386os9k.c
225 ieee.c
226 ihex.c
227 init.c
228 irix-core.c
229 libaout.h
230 libbfd-in.h
231 libbfd.c
232 libbfd.h
233 libcoff-in.h
234 libcoff.h
235 libecoff.h
236 libhppa.h
237 libieee.h
238 libnlm.h
239 liboasys.h
240 linker.c
241 lynx-core.c
242 m68k4knetbsd.c
243 m68klinux.c
244 m68klynx.c
245 m68knetbsd.c
246 m88kmach3.c
247 makefile.dos
248 makefile.vms
249 mipsbsd.c
250 mpw-config.in
251 mpw-make.sed
252 newsos3.c
253 netbsd-core.c
254 netbsd.h
255 nlm-target.h
256 nlm.c
257 nlm32-alpha.c
258 nlm32-i386.c
259 nlm32-ppc.c
260 nlm32-sparc.c
261 nlm32.c
262 nlm64.c
263 nlmcode.h
264 nlmswap.h
265 ns32k.h
266 ns32knetbsd.c
267 oasys.c
268 opncls.c
269 osf-core.c
270 pc532-mach.c
271 pe-arm.c
272 pe-i386.c
273 pe-ppc.c
274 pei-arm.c
275 pei-i386.c
276 pei-ppc.c
277 peicode.h
278 ppcboot.c
279 ptrace-core.c
280 reloc.c
281 reloc16.c
282 riscix.c
283 rs6000-core.c
284 section.c
285 som.c
286 som.h
287 sparclinux.c
288 sparclynx.c
289 sparcnetbsd.c
290 srec.c
291 stabs.c
292 stab-syms.c
293 stamp-h.in
294 sunos.c
295 syms.c
296 sysdep.h
297 targets.c
298 targmatch.sed
299 tekhex.c
300 trad-core.c
301 versados.c
302 xcofflink.c
303
304 Things-to-lose:
305
306
307 Do-last:
308
309 d30v_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
310 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
311 for i in $d30v_files ; do
312 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
313 if [ -n "${verbose}" ] ; then
314 echo Keeping d30v stuff in $i
315 fi
316 fi
317 done
318 else
319 for i in $d30v_files ; do
320 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
321 if [ -n "${verbose}" ] ; then
322 echo Removing traces of \"d30v\" from $i...
323 fi
324 cp $i new
325 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
326 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
327 if [ -n "${verbose}" ] ; then
328 echo Caching $i in .Recover...
329 fi
330 mv $i .Recover
331 fi
332 mv new $i
333 fi
334 done
335 fi
336
337 v850_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h elf32-v850.c"
338 v850e_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
339 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
340 for i in $v850_files ; do
341 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
342 if [ -n "${verbose}" ] ; then
343 echo Keeping v850 stuff in $i
344 fi
345 fi
346 done
347 else
348 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
349 true
350 else
351 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
352 true
353 else
354 for i in $v850e_files ; do
355 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
356 if [ -n "${verbose}" ] ; then
357 echo Removing traces of \"v850\" from $i...
358 fi
359 cp $i new
360 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
361 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
362 if [ -n "${verbose}" ] ; then
363 echo Caching $i in .Recover...
364 fi
365 mv $i .Recover
366 fi
367 mv new $i
368 fi
369 done
370 fi
371 fi
372 fi
373
374 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
375 for i in $v850_files ; do
376 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
377 if [ -n "${verbose}" ] ; then
378 echo Keeping v850e stuff in $i
379 fi
380 fi
381 done
382 else
383 for i in $v850_files ; do
384 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
385 if [ -n "${verbose}" ] ; then
386 echo Removing traces of \"v850e\" from $i...
387 fi
388 cp $i new
389 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/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 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
401 for i in $v850_files ; do
402 if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
403 if [ -n "${verbose}" ] ; then
404 echo Keeping v850eq stuff in $i
405 fi
406 fi
407 done
408 else
409 for i in $v850_files ; do
410 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
411 if [ -n "${verbose}" ] ; then
412 echo Removing traces of \"v850eq\" from $i...
413 fi
414 cp $i new
415 sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new
416 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
417 if [ -n "${verbose}" ] ; then
418 echo Caching $i in .Recover...
419 fi
420 mv $i .Recover
421 fi
422 mv new $i
423 fi
424 done
425 fi
426
427 r5900_files="ChangeLog config.bfd"
428 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
429 for i in $r5900_files ; do
430 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
431 if [ -n "${verbose}" ] ; then
432 echo Keeping r5900 stuff in $i
433 fi
434 fi
435 done
436 else
437 for i in $r5900_files ; do
438 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
439 if [ -n "${verbose}" ] ; then
440 echo Removing traces of \"r5900\" from $i...
441 fi
442 cp $i new
443 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
444 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
445 if [ -n "${verbose}" ] ; then
446 echo Caching $i in .Recover...
447 fi
448 mv $i .Recover
449 fi
450 mv new $i
451 fi
452 done
453 fi
454
455 tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
456 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
457 for i in $tic80_files ; do
458 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
459 if [ -n "${verbose}" ] ; then
460 echo Keeping tic80 stuff in $i
461 fi
462 fi
463 done
464 else
465 for i in $tic80_files ; do
466 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
467 if [ -n "${verbose}" ] ; then
468 echo Removing traces of \"tic80\" from $i...
469 fi
470 cp $i new
471 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
472 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
473 if [ -n "${verbose}" ] ; then
474 echo Caching $i in .Recover...
475 fi
476 mv $i .Recover
477 fi
478 mv new $i
479 fi
480 done
481 fi
482
483 gm_files="ChangeLog ChangeLog.2 config.bfd"
484 if ( echo $* | grep keep\-gm > /dev/null ) ; then
485 for i in $gm_files ; do
486 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
487 if [ -n "${verbose}" ] ; then
488 echo Keeping gm stuff in $i
489 fi
490 fi
491 done
492 else
493 for i in $gm_files ; do
494 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
495 if [ -n "${verbose}" ] ; then
496 echo Removing traces of \"gm\" from $i...
497 fi
498 cp $i new
499 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
500 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
501 if [ -n "${verbose}" ] ; then
502 echo Caching $i in .Recover...
503 fi
504 mv $i .Recover
505 fi
506 mv new $i
507 fi
508 done
509 fi
510
511 for i in * ; do
512 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
513 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
514 fi
515 done
516
517 # End of file.
This page took 0.045622 seconds and 5 git commands to generate.