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