Commit | Line | Data |
---|---|---|
8b0f1c20 | 1 | # .Sanitize for devo/bfd. |
08942d11 | 2 | |
a92c5906 | 3 | # Each directory to survive its way into a release will need a file |
08942d11 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 | |
8b0f1c20 | 14 | # done in this directory. |
08942d11 RP |
15 | |
16 | Do-first: | |
17 | ||
05cedcf6 DE |
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 | ||
50bd50d4 MH |
26 | d10v_files="cpu-d10v.c elf32-d10v.c" |
27 | ||
28 | if ( echo $* | grep keep\-d10v > /dev/null ) ; then | |
29 | keep_these_too="${d10v_files} ${keep_these_too}" | |
30 | else | |
31 | lose_these_too="${d10v_files} ${lose_these_too}" | |
32 | fi | |
33 | ||
fd8d7c31 MH |
34 | d30v_files="cpu-d30v.c elf32-d30v.c" |
35 | ||
36 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
37 | keep_these_too="${d30v_files} ${keep_these_too}" | |
38 | else | |
39 | lose_these_too="${d30v_files} ${lose_these_too}" | |
40 | fi | |
41 | ||
3ebefb07 DE |
42 | m32r_files="cpu-m32r.c elf32-m32r.c" |
43 | ||
44 | if ( echo $* | grep keep\-m32r > /dev/null ) ; then | |
45 | keep_these_too="${m32r_files} ${keep_these_too}" | |
46 | else | |
47 | lose_these_too="${m32r_files} ${lose_these_too}" | |
48 | fi | |
49 | ||
71bcbd25 | 50 | v850_files="cpu-v850.c elf32-v850.c" |
0c1d95c7 C |
51 | |
52 | if ( echo $* | grep keep\-v850 > /dev/null ) ; then | |
53 | keep_these_too="${v850_files} ${keep_these_too}" | |
54 | else | |
55 | lose_these_too="${v850_files} ${lose_these_too}" | |
56 | fi | |
57 | ||
2a0a42d3 FF |
58 | tic80_files="cpu-tic80.c coff-tic80.c" |
59 | ||
60 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
61 | keep_these_too="${tic80_files} ${keep_these_too}" | |
62 | else | |
63 | lose_these_too="${tic80_files} ${lose_these_too}" | |
64 | fi | |
65 | ||
08942d11 RP |
66 | # All files listed between the "Things-to-keep:" line and the |
67 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
68 | # Directories listed in this section will have their own Sanitize | |
69 | # called. Directories not listed will be removed in their entirety | |
70 | # with rm -rf. | |
71 | ||
72 | Things-to-keep: | |
87756e15 | 73 | |
08942d11 RP |
74 | COPYING |
75 | ChangeLog | |
ceeca31c | 76 | ChangeLog.1 |
1613e075 | 77 | ChangeLog.2 |
08942d11 | 78 | Makefile.in |
c3e964b9 | 79 | PORTING |
b8760145 | 80 | README |
08942d11 | 81 | TODO |
8c1891af | 82 | VERSION |
b7577823 | 83 | acconfig.h |
f515fb2f | 84 | aclocal.m4 |
60ac749c | 85 | aix386-core.c |
c3e964b9 | 86 | aout-adobe.c |
ff15324f | 87 | aout-arm.c |
c3e964b9 | 88 | aout-encap.c |
56fbe889 | 89 | aout-ns32k.c |
0cd98b92 | 90 | aout-sparcle.c |
c3e964b9 | 91 | aout-target.h |
77d11284 | 92 | aout0.c |
08942d11 RP |
93 | aout32.c |
94 | aout64.c | |
95 | aoutf1.h | |
08942d11 RP |
96 | aoutx.h |
97 | archive.c | |
98 | archures.c | |
901c5bfd | 99 | bfd-in.h |
b9653d81 | 100 | bfd-in2.h |
08942d11 | 101 | bfd.c |
c768bd3f | 102 | binary.c |
08942d11 RP |
103 | bout.c |
104 | cache.c | |
e3b5bfa8 SS |
105 | cf-i386lynx.c |
106 | cf-m68klynx.c | |
107 | cf-sparclynx.c | |
5d70e4d1 | 108 | cisco-core.c |
156e3852 | 109 | coff-a29k.c |
c3e964b9 | 110 | coff-alpha.c |
97eb2f0c | 111 | coff-apollo.c |
d19df9b5 ILT |
112 | coff-arm.c |
113 | coff-aux.c | |
c06e55d9 | 114 | coff-go32.c |
71e34032 | 115 | coff-h8300.c |
ff975a2c | 116 | coff-h8500.c |
156e3852 | 117 | coff-i386.c |
cf587de8 | 118 | coff-i860.c |
156e3852 | 119 | coff-i960.c |
c3e964b9 | 120 | coff-m68k.c |
156e3852 JG |
121 | coff-m88k.c |
122 | coff-mips.c | |
63c67f3c | 123 | coff-pmac.c |
8d2a09b0 | 124 | coff-ppc.c |
156e3852 | 125 | coff-rs6000.c |
9faacb92 | 126 | coff-sh.c |
e3b5bfa8 | 127 | coff-sparc.c |
df61743d | 128 | coff-u68k.c |
c7551f76 | 129 | coff-we32k.c |
d468a149 | 130 | coff-w65.c |
d41ab714 | 131 | coff-z8k.c |
08942d11 | 132 | coffcode.h |
075caafd | 133 | coffgen.c |
69645d10 | 134 | cofflink.c |
075caafd | 135 | coffswap.h |
14616002 | 136 | config.bfd |
c3d8e071 | 137 | config.h-vms |
936b870c | 138 | config.in |
7c1a9ec3 | 139 | configure |
13b351cc | 140 | configure.bat |
5a5fa368 | 141 | configure.host |
c3e964b9 | 142 | configure.in |
d9e771e3 | 143 | corefile.c |
c3e964b9 FF |
144 | cpu-a29k.c |
145 | cpu-alpha.c | |
6c3bc2b8 | 146 | cpu-arm.c |
c3e964b9 FF |
147 | cpu-h8300.c |
148 | cpu-h8500.c | |
149 | cpu-hppa.c | |
150 | cpu-i386.c | |
cf587de8 | 151 | cpu-i860.c |
c3e964b9 FF |
152 | cpu-i960.c |
153 | cpu-m68k.c | |
154 | cpu-m88k.c | |
155 | cpu-mips.c | |
ae1b99e4 JL |
156 | cpu-mn10200.c |
157 | cpu-mn10300.c | |
e26e4fbc | 158 | cpu-ns32k.c |
384c1791 | 159 | cpu-powerpc.c |
c3e964b9 FF |
160 | cpu-rs6000.c |
161 | cpu-sh.c | |
162 | cpu-sparc.c | |
163 | cpu-vax.c | |
164 | cpu-we32k.c | |
d468a149 | 165 | cpu-w65.c |
c3e964b9 | 166 | cpu-z8k.c |
08942d11 | 167 | demo64.c |
97eb2f0c | 168 | dep-in.sed |
c3e964b9 | 169 | doc |
dae31cf5 | 170 | ecoff.c |
71efdf83 | 171 | ecofflink.c |
dae31cf5 | 172 | ecoffswap.h |
6ab826bd | 173 | elf-bfd.h |
cef91d75 | 174 | elf.c |
d39d83c1 | 175 | elf32-gen.c |
c268b400 KR |
176 | elf32-hppa.c |
177 | elf32-hppa.h | |
4743848f KR |
178 | elf32-i386.c |
179 | elf32-i860.c | |
180 | elf32-m68k.c | |
2c4f2c72 JK |
181 | elf32-m88k.c |
182 | elf32-mips.c | |
ae1b99e4 JL |
183 | elf32-mn10200.c |
184 | elf32-mn10300.c | |
45ccfd58 | 185 | elf32-ppc.c |
c86158e5 | 186 | elf32-sh.c |
8d936d1f | 187 | elf32-sparc.c |
4743848f | 188 | elf32.c |
e8f46717 | 189 | elf64-alpha.c |
d39d83c1 | 190 | elf64-gen.c |
d1bf45aa | 191 | elf64-mips.c |
66599384 | 192 | elf64-sparc.c |
4bf86ecb | 193 | elf64.c |
4b18dd1e | 194 | elfxx-target.h |
ef7e172e | 195 | elfcode.h |
ede4eed4 KR |
196 | elfcore.h |
197 | elflink.c | |
198 | elflink.h | |
c3d8e071 ILT |
199 | evax.h |
200 | evax-alpha.c | |
201 | evax-egsd.c | |
202 | evax-emh.c | |
203 | evax-etir.c | |
204 | evax-misc.c | |
08942d11 | 205 | filemode.c |
6f715d66 | 206 | format.c |
767f22d5 | 207 | freebsd.h |
608de555 | 208 | gen-aout.c |
da6b2d99 ILT |
209 | genlink.h |
210 | hash.c | |
08942d11 | 211 | host-aout.c |
90c7c720 | 212 | hosts |
c3e964b9 | 213 | hp300bsd.c |
c268b400 | 214 | hp300hpux.c |
cef91d75 | 215 | hppa_stubs.h |
8a71bf96 | 216 | hppabsd-core.c |
3f933620 | 217 | hpux-core.c |
b7de6963 | 218 | i386aout.c |
256b39e0 | 219 | i386bsd.c |
bdf1b511 | 220 | i386dynix.c |
767f22d5 | 221 | i386freebsd.c |
afff60cd | 222 | i386linux.c |
a3f7a777 | 223 | i386netbsd.c |
aef0bd99 | 224 | i386lynx.c |
890eafc0 | 225 | i386mach3.c |
7c2c70f3 | 226 | i386msdos.c |
f8ffa548 | 227 | i386os9k.c |
08942d11 | 228 | ieee.c |
ffd15489 | 229 | ihex.c |
c3e964b9 | 230 | init.c |
7ce1a446 | 231 | irix-core.c |
141c97ea | 232 | libaout.h |
901c5bfd | 233 | libbfd-in.h |
08942d11 RP |
234 | libbfd.c |
235 | libbfd.h | |
901c5bfd | 236 | libcoff-in.h |
08942d11 | 237 | libcoff.h |
a3b3dbdd | 238 | libecoff.h |
76b731f9 | 239 | libhppa.h |
08942d11 | 240 | libieee.h |
c3e964b9 | 241 | libnlm.h |
08942d11 | 242 | liboasys.h |
da6b2d99 | 243 | linker.c |
3151f12f | 244 | lynx-core.c |
e295a90d | 245 | m68k4knetbsd.c |
55626bf0 | 246 | m68klinux.c |
eefe075d | 247 | m68klynx.c |
ec35a1c2 | 248 | m68knetbsd.c |
56fbe889 | 249 | m88kmach3.c |
346a6d59 | 250 | makefile.dos |
c3d8e071 | 251 | makefile.vms |
044c1ba9 | 252 | mipsbsd.c |
241d8883 | 253 | mpw-config.in |
63c67f3c | 254 | mpw-make.sed |
08942d11 | 255 | newsos3.c |
fe16107d | 256 | netbsd-core.c |
a3f7a777 | 257 | netbsd.h |
d1f83f44 | 258 | nlm-target.h |
c3e964b9 | 259 | nlm.c |
1bbabdad | 260 | nlm32-alpha.c |
8fa7a236 | 261 | nlm32-i386.c |
7ce8b9d1 | 262 | nlm32-ppc.c |
38f422db | 263 | nlm32-sparc.c |
c3e964b9 | 264 | nlm32.c |
c3e964b9 FF |
265 | nlm64.c |
266 | nlmcode.h | |
38f422db | 267 | nlmswap.h |
c877bdf1 | 268 | ns32k.h |
a3f7a777 | 269 | ns32knetbsd.c |
08942d11 RP |
270 | oasys.c |
271 | opncls.c | |
4346ee0f | 272 | osf-core.c |
56fbe889 | 273 | pc532-mach.c |
a3444c49 | 274 | pe-arm.c |
b297038d | 275 | pe-i386.c |
8d2a09b0 | 276 | pe-ppc.c |
4e98461f | 277 | pei-arm.c |
b297038d | 278 | pei-i386.c |
8d2a09b0 | 279 | pei-ppc.c |
4e98461f | 280 | peicode.h |
0d1fcbbb | 281 | ppcboot.c |
c236d8b3 | 282 | ptrace-core.c |
6f715d66 | 283 | reloc.c |
075caafd | 284 | reloc16.c |
6c3bc2b8 | 285 | riscix.c |
cf15d9e9 | 286 | rs6000-core.c |
6f715d66 | 287 | section.c |
66eca5ee JK |
288 | som.c |
289 | som.h | |
e3b5bfa8 | 290 | sparclynx.c |
a3f7a777 | 291 | sparcnetbsd.c |
08942d11 | 292 | srec.c |
1726b8f0 | 293 | stabs.c |
7de245d3 | 294 | stab-syms.c |
08942d11 | 295 | sunos.c |
6f715d66 | 296 | syms.c |
b7577823 | 297 | sysdep.h |
08942d11 | 298 | targets.c |
dee99794 | 299 | targmatch.sed |
a14b2941 | 300 | tekhex.c |
08942d11 | 301 | trad-core.c |
c3c112fc | 302 | versados.c |
dd984644 | 303 | xcofflink.c |
08942d11 | 304 | |
87756e15 RP |
305 | Things-to-lose: |
306 | ||
775d4a40 | 307 | |
08942d11 RP |
308 | Do-last: |
309 | ||
2ec2c9f4 | 310 | 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" |
05cedcf6 DE |
311 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
312 | for i in $arc_files ; do | |
313 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
314 | if [ -n "${verbose}" ] ; then | |
315 | echo Keeping arc stuff in $i | |
316 | fi | |
317 | fi | |
318 | done | |
319 | else | |
320 | for i in $arc_files ; do | |
321 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
322 | if [ -n "${verbose}" ] ; then | |
323 | echo Removing traces of \"arc\" from $i... | |
324 | fi | |
325 | cp $i new | |
326 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
327 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
50bd50d4 MH |
328 | if [ -n "${verbose}" ] ; then |
329 | echo Caching $i in .Recover... | |
330 | fi | |
331 | mv $i .Recover | |
332 | fi | |
333 | mv new $i | |
334 | fi | |
335 | done | |
336 | fi | |
337 | ||
fd8d7c31 MH |
338 | 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" |
339 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
340 | for i in $d30v_files ; do | |
341 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
342 | if [ -n "${verbose}" ] ; then | |
343 | echo Keeping d30v stuff in $i | |
344 | fi | |
345 | fi | |
346 | done | |
347 | else | |
348 | for i in $d30v_files ; do | |
349 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
350 | if [ -n "${verbose}" ] ; then | |
351 | echo Removing traces of \"d30v\" from $i... | |
352 | fi | |
353 | cp $i new | |
354 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new | |
355 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
0c1d95c7 C |
356 | if [ -n "${verbose}" ] ; then |
357 | echo Caching $i in .Recover... | |
358 | fi | |
359 | mv $i .Recover | |
360 | fi | |
361 | mv new $i | |
362 | fi | |
363 | done | |
364 | fi | |
365 | ||
3ebefb07 | 366 | m32r_files="ChangeLog Makefile.in config.bfd configure.in configure elf.c archures.c reloc.c targets.c bfd-in2.h libbfd.h" |
66e4c229 DE |
367 | if ( echo $* | grep keep\-m32r > /dev/null ) ; then |
368 | for i in $m32r_files ; do | |
369 | if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then | |
370 | if [ -n "${verbose}" ] ; then | |
371 | echo Keeping m32r stuff in $i | |
372 | fi | |
373 | fi | |
374 | done | |
375 | else | |
376 | for i in $m32r_files ; do | |
377 | if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then | |
378 | if [ -n "${verbose}" ] ; then | |
379 | echo Removing traces of \"m32r\" from $i... | |
380 | fi | |
381 | cp $i new | |
382 | sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new | |
383 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
384 | if [ -n "${verbose}" ] ; then | |
385 | echo Caching $i in .Recover... | |
386 | fi | |
387 | mv $i .Recover | |
388 | fi | |
389 | mv new $i | |
390 | fi | |
391 | done | |
392 | fi | |
393 | ||
0c1d95c7 C |
394 | 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" |
395 | if ( echo $* | grep keep\-v850 > /dev/null ) ; then | |
396 | for i in $v850_files ; do | |
397 | if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then | |
398 | if [ -n "${verbose}" ] ; then | |
399 | echo Keeping v850 stuff in $i | |
400 | fi | |
401 | fi | |
402 | done | |
403 | else | |
404 | for i in $v850_files ; do | |
405 | if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then | |
406 | if [ -n "${verbose}" ] ; then | |
407 | echo Removing traces of \"v850\" from $i... | |
408 | fi | |
409 | cp $i new | |
410 | sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new | |
411 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
2a0a42d3 FF |
412 | if [ -n "${verbose}" ] ; then |
413 | echo Caching $i in .Recover... | |
414 | fi | |
415 | mv $i .Recover | |
416 | fi | |
417 | mv new $i | |
418 | fi | |
419 | done | |
420 | fi | |
421 | ||
276c2d7d GRK |
422 | r5900_files="ChangeLog config.bfd" |
423 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then | |
424 | for i in $r5900_files ; do | |
425 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
426 | if [ -n "${verbose}" ] ; then | |
427 | echo Keeping r5900 stuff in $i | |
428 | fi | |
429 | fi | |
430 | done | |
431 | else | |
432 | for i in $r5900_files ; do | |
433 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
434 | if [ -n "${verbose}" ] ; then | |
435 | echo Removing traces of \"r5900\" from $i... | |
436 | fi | |
437 | cp $i new | |
438 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
439 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
440 | if [ -n "${verbose}" ] ; then | |
441 | echo Caching $i in .Recover... | |
442 | fi | |
443 | mv $i .Recover | |
444 | fi | |
445 | mv new $i | |
446 | fi | |
447 | done | |
448 | fi | |
449 | ||
5a608f5b | 450 | tic80_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure configure.in targets.c" |
2a0a42d3 FF |
451 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
452 | for i in $tic80_files ; do | |
453 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
454 | if [ -n "${verbose}" ] ; then | |
455 | echo Keeping tic80 stuff in $i | |
456 | fi | |
457 | fi | |
458 | done | |
459 | else | |
460 | for i in $tic80_files ; do | |
461 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
462 | if [ -n "${verbose}" ] ; then | |
463 | echo Removing traces of \"tic80\" from $i... | |
464 | fi | |
465 | cp $i new | |
466 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
467 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
05cedcf6 DE |
468 | if [ -n "${verbose}" ] ; then |
469 | echo Caching $i in .Recover... | |
470 | fi | |
471 | mv $i .Recover | |
472 | fi | |
473 | mv new $i | |
474 | fi | |
475 | done | |
476 | fi | |
477 | ||
d6d44ef9 SG |
478 | gm_files="ChangeLog ChangeLog.2 config.bfd" |
479 | if ( echo $* | grep keep\-gm > /dev/null ) ; then | |
480 | for i in $gm_files ; do | |
481 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
482 | if [ -n "${verbose}" ] ; then | |
483 | echo Keeping gm stuff in $i | |
484 | fi | |
485 | fi | |
486 | done | |
487 | else | |
488 | for i in $gm_files ; do | |
489 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
490 | if [ -n "${verbose}" ] ; then | |
491 | echo Removing traces of \"gm\" from $i... | |
492 | fi | |
493 | cp $i new | |
494 | sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new | |
495 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
496 | if [ -n "${verbose}" ] ; then | |
497 | echo Caching $i in .Recover... | |
498 | fi | |
499 | mv $i .Recover | |
500 | fi | |
501 | mv new $i | |
502 | fi | |
503 | done | |
504 | fi | |
505 | ||
5c680afd MT |
506 | for i in * ; do |
507 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
508 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
509 | fi | |
510 | done | |
511 | ||
08942d11 | 512 | # End of file. |