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