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