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