Commit | Line | Data |
---|---|---|
7d2ac701 | 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 | ||
2a0a42d3 FF |
18 | tic80_files="cpu-tic80.c coff-tic80.c" |
19 | ||
20 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
21 | keep_these_too="${tic80_files} ${keep_these_too}" | |
22 | else | |
23 | lose_these_too="${tic80_files} ${lose_these_too}" | |
24 | fi | |
25 | ||
08942d11 | 26 | # All files listed between the "Things-to-keep:" line and the |
7d2ac701 | 27 | # "Do-last:" line will be kept. All other files will be removed. |
08942d11 RP |
28 | # Directories listed in this section will have their own Sanitize |
29 | # called. Directories not listed will be removed in their entirety | |
30 | # with rm -rf. | |
31 | ||
32 | Things-to-keep: | |
87756e15 | 33 | |
08942d11 RP |
34 | COPYING |
35 | ChangeLog | |
06fdc311 ILT |
36 | ChangeLog-9193 |
37 | ChangeLog-9495 | |
38 | ChangeLog-9697 | |
c0734708 | 39 | Makefile.am |
08942d11 | 40 | Makefile.in |
c3e964b9 | 41 | PORTING |
b8760145 | 42 | README |
08942d11 | 43 | TODO |
b7577823 | 44 | acconfig.h |
c0734708 | 45 | acinclude.m4 |
f515fb2f | 46 | aclocal.m4 |
60ac749c | 47 | aix386-core.c |
c3e964b9 | 48 | aout-adobe.c |
ff15324f | 49 | aout-arm.c |
c3e964b9 | 50 | aout-encap.c |
56fbe889 | 51 | aout-ns32k.c |
0cd98b92 | 52 | aout-sparcle.c |
c3e964b9 | 53 | aout-target.h |
e8f2efef | 54 | aout-tic30.c |
77d11284 | 55 | aout0.c |
08942d11 RP |
56 | aout32.c |
57 | aout64.c | |
58 | aoutf1.h | |
08942d11 RP |
59 | aoutx.h |
60 | archive.c | |
61 | archures.c | |
901c5bfd | 62 | bfd-in.h |
b9653d81 | 63 | bfd-in2.h |
08942d11 | 64 | bfd.c |
c768bd3f | 65 | binary.c |
08942d11 RP |
66 | bout.c |
67 | cache.c | |
e3b5bfa8 SS |
68 | cf-i386lynx.c |
69 | cf-m68klynx.c | |
70 | cf-sparclynx.c | |
5d70e4d1 | 71 | cisco-core.c |
156e3852 | 72 | coff-a29k.c |
c3e964b9 | 73 | coff-alpha.c |
97eb2f0c | 74 | coff-apollo.c |
d19df9b5 ILT |
75 | coff-arm.c |
76 | coff-aux.c | |
c06e55d9 | 77 | coff-go32.c |
71e34032 | 78 | coff-h8300.c |
ff975a2c | 79 | coff-h8500.c |
156e3852 | 80 | coff-i386.c |
cf587de8 | 81 | coff-i860.c |
156e3852 | 82 | coff-i960.c |
c3e964b9 | 83 | coff-m68k.c |
156e3852 JG |
84 | coff-m88k.c |
85 | coff-mips.c | |
63c67f3c | 86 | coff-pmac.c |
8d2a09b0 | 87 | coff-ppc.c |
156e3852 | 88 | coff-rs6000.c |
9faacb92 | 89 | coff-sh.c |
e3b5bfa8 | 90 | coff-sparc.c |
2af5a7e4 | 91 | coff-stgo32.c |
ac388f2a | 92 | coff-svm68k.c |
e8f2efef | 93 | coff-tic30.c |
df61743d | 94 | coff-u68k.c |
d468a149 | 95 | coff-w65.c |
7d2ac701 | 96 | coff-we32k.c |
d41ab714 | 97 | coff-z8k.c |
08942d11 | 98 | coffcode.h |
075caafd | 99 | coffgen.c |
69645d10 | 100 | cofflink.c |
075caafd | 101 | coffswap.h |
14616002 | 102 | config.bfd |
936b870c | 103 | config.in |
7c1a9ec3 | 104 | configure |
13b351cc | 105 | configure.bat |
0f854557 | 106 | configure.com |
5a5fa368 | 107 | configure.host |
c3e964b9 | 108 | configure.in |
d9e771e3 | 109 | corefile.c |
c3e964b9 FF |
110 | cpu-a29k.c |
111 | cpu-alpha.c | |
76af94b9 | 112 | cpu-arc.c |
6c3bc2b8 | 113 | cpu-arm.c |
a3c5b9a4 | 114 | cpu-d10v.c |
6767a3ab | 115 | cpu-d30v.c |
025ce5c6 | 116 | cpu-fr30.c |
c3e964b9 FF |
117 | cpu-h8300.c |
118 | cpu-h8500.c | |
119 | cpu-hppa.c | |
120 | cpu-i386.c | |
cf587de8 | 121 | cpu-i860.c |
c3e964b9 | 122 | cpu-i960.c |
7d2ac701 ILT |
123 | cpu-m10200.c |
124 | cpu-m10300.c | |
37bdd624 | 125 | cpu-m32r.c |
c3e964b9 FF |
126 | cpu-m68k.c |
127 | cpu-m88k.c | |
128 | cpu-mips.c | |
e26e4fbc | 129 | cpu-ns32k.c |
384c1791 | 130 | cpu-powerpc.c |
c3e964b9 FF |
131 | cpu-rs6000.c |
132 | cpu-sh.c | |
133 | cpu-sparc.c | |
e8f2efef | 134 | cpu-tic30.c |
15d82b26 | 135 | cpu-v850.c |
c3e964b9 | 136 | cpu-vax.c |
d468a149 | 137 | cpu-w65.c |
7d2ac701 | 138 | cpu-we32k.c |
c3e964b9 | 139 | cpu-z8k.c |
08942d11 | 140 | demo64.c |
97eb2f0c | 141 | dep-in.sed |
c3e964b9 | 142 | doc |
53e4f2aa | 143 | dwarf1.c |
6ac2511d | 144 | dwarf2.c |
dae31cf5 | 145 | ecoff.c |
71efdf83 | 146 | ecofflink.c |
dae31cf5 | 147 | ecoffswap.h |
6ab826bd | 148 | elf-bfd.h |
7d2ac701 ILT |
149 | elf-m10200.c |
150 | elf-m10300.c | |
cef91d75 | 151 | elf.c |
76af94b9 | 152 | elf32-arc.c |
9d811c21 | 153 | elf32-arm.c |
a3c5b9a4 | 154 | elf32-d10v.c |
6767a3ab | 155 | elf32-d30v.c |
025ce5c6 | 156 | elf32-fr30.c |
d39d83c1 | 157 | elf32-gen.c |
c268b400 KR |
158 | elf32-hppa.c |
159 | elf32-hppa.h | |
4743848f KR |
160 | elf32-i386.c |
161 | elf32-i860.c | |
37bdd624 | 162 | elf32-m32r.c |
4743848f | 163 | elf32-m68k.c |
2c4f2c72 JK |
164 | elf32-m88k.c |
165 | elf32-mips.c | |
45ccfd58 | 166 | elf32-ppc.c |
c86158e5 | 167 | elf32-sh.c |
8d936d1f | 168 | elf32-sparc.c |
15d82b26 | 169 | elf32-v850.c |
4743848f | 170 | elf32.c |
e8f46717 | 171 | elf64-alpha.c |
d39d83c1 | 172 | elf64-gen.c |
d1bf45aa | 173 | elf64-mips.c |
66599384 | 174 | elf64-sparc.c |
4bf86ecb | 175 | elf64.c |
ef7e172e | 176 | elfcode.h |
ede4eed4 KR |
177 | elfcore.h |
178 | elflink.c | |
179 | elflink.h | |
7d2ac701 | 180 | elfxx-target.h |
6f715d66 | 181 | format.c |
767f22d5 | 182 | freebsd.h |
608de555 | 183 | gen-aout.c |
da6b2d99 | 184 | genlink.h |
179ce6e1 | 185 | go32stub.h |
da6b2d99 | 186 | hash.c |
08942d11 | 187 | host-aout.c |
90c7c720 | 188 | hosts |
c3e964b9 | 189 | hp300bsd.c |
c268b400 | 190 | hp300hpux.c |
cef91d75 | 191 | hppa_stubs.h |
8a71bf96 | 192 | hppabsd-core.c |
3f933620 | 193 | hpux-core.c |
b7de6963 | 194 | i386aout.c |
256b39e0 | 195 | i386bsd.c |
bdf1b511 | 196 | i386dynix.c |
767f22d5 | 197 | i386freebsd.c |
afff60cd | 198 | i386linux.c |
aef0bd99 | 199 | i386lynx.c |
890eafc0 | 200 | i386mach3.c |
7c2c70f3 | 201 | i386msdos.c |
7d2ac701 | 202 | i386netbsd.c |
f8ffa548 | 203 | i386os9k.c |
08942d11 | 204 | ieee.c |
ffd15489 | 205 | ihex.c |
c3e964b9 | 206 | init.c |
7ce1a446 | 207 | irix-core.c |
141c97ea | 208 | libaout.h |
901c5bfd | 209 | libbfd-in.h |
08942d11 RP |
210 | libbfd.c |
211 | libbfd.h | |
901c5bfd | 212 | libcoff-in.h |
08942d11 | 213 | libcoff.h |
a3b3dbdd | 214 | libecoff.h |
76b731f9 | 215 | libhppa.h |
08942d11 | 216 | libieee.h |
c3e964b9 | 217 | libnlm.h |
08942d11 | 218 | liboasys.h |
da6b2d99 | 219 | linker.c |
3151f12f | 220 | lynx-core.c |
e295a90d | 221 | m68k4knetbsd.c |
55626bf0 | 222 | m68klinux.c |
eefe075d | 223 | m68klynx.c |
ec35a1c2 | 224 | m68knetbsd.c |
56fbe889 | 225 | m88kmach3.c |
346a6d59 | 226 | makefile.dos |
c3d8e071 | 227 | makefile.vms |
044c1ba9 | 228 | mipsbsd.c |
241d8883 | 229 | mpw-config.in |
63c67f3c | 230 | mpw-make.sed |
fe16107d | 231 | netbsd-core.c |
a3f7a777 | 232 | netbsd.h |
7d2ac701 | 233 | newsos3.c |
d1f83f44 | 234 | nlm-target.h |
c3e964b9 | 235 | nlm.c |
1bbabdad | 236 | nlm32-alpha.c |
8fa7a236 | 237 | nlm32-i386.c |
7ce8b9d1 | 238 | nlm32-ppc.c |
38f422db | 239 | nlm32-sparc.c |
c3e964b9 | 240 | nlm32.c |
c3e964b9 FF |
241 | nlm64.c |
242 | nlmcode.h | |
38f422db | 243 | nlmswap.h |
c877bdf1 | 244 | ns32k.h |
a3f7a777 | 245 | ns32knetbsd.c |
08942d11 RP |
246 | oasys.c |
247 | opncls.c | |
4346ee0f | 248 | osf-core.c |
56fbe889 | 249 | pc532-mach.c |
a3444c49 | 250 | pe-arm.c |
b297038d | 251 | pe-i386.c |
8d2a09b0 | 252 | pe-ppc.c |
4e98461f | 253 | pei-arm.c |
b297038d | 254 | pei-i386.c |
8d2a09b0 | 255 | pei-ppc.c |
4e98461f | 256 | peicode.h |
7d2ac701 | 257 | po |
0d1fcbbb | 258 | ppcboot.c |
c236d8b3 | 259 | ptrace-core.c |
6f715d66 | 260 | reloc.c |
075caafd | 261 | reloc16.c |
6c3bc2b8 | 262 | riscix.c |
cf15d9e9 | 263 | rs6000-core.c |
6f715d66 | 264 | section.c |
66eca5ee JK |
265 | som.c |
266 | som.h | |
5f792743 | 267 | sparclinux.c |
e3b5bfa8 | 268 | sparclynx.c |
a3f7a777 | 269 | sparcnetbsd.c |
08942d11 | 270 | srec.c |
7de245d3 | 271 | stab-syms.c |
7d2ac701 | 272 | stabs.c |
c0734708 | 273 | stamp-h.in |
08942d11 | 274 | sunos.c |
6f715d66 | 275 | syms.c |
b7577823 | 276 | sysdep.h |
08942d11 | 277 | targets.c |
dee99794 | 278 | targmatch.sed |
a14b2941 | 279 | tekhex.c |
08942d11 | 280 | trad-core.c |
eee4e8ca | 281 | vaxnetbsd.c |
c3c112fc | 282 | versados.c |
0dc4c667 ILT |
283 | vms.c |
284 | vms.h | |
285 | vms-gsd.c | |
286 | vms-hdr.c | |
287 | vms-misc.c | |
288 | vms-tir.c | |
dd984644 | 289 | xcofflink.c |
08942d11 | 290 | |
87756e15 RP |
291 | Things-to-lose: |
292 | ||
775d4a40 | 293 | |
7d2ac701 ILT |
294 | |
295 | # The lines between the "Do-last:" line and the end of the file | |
296 | # are executed as a /bin/sh shell script after everything else is | |
297 | # done. | |
298 | ||
08942d11 RP |
299 | Do-last: |
300 | ||
4db4e912 JL |
301 | am33_files="ChangeLog archures.c bfd-in2.h cpu-m10300.c elf-m10300.c" |
302 | if ( echo $* | grep keep\-am33 > /dev/null ) ; then | |
303 | for i in $am33_files ; do | |
304 | if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then | |
305 | if [ -n "${verbose}" ] ; then | |
306 | echo Keeping am33 stuff in $i | |
307 | fi | |
308 | fi | |
309 | done | |
310 | else | |
311 | for i in $am33_files ; do | |
312 | if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then | |
313 | if [ -n "${verbose}" ] ; then | |
314 | echo Removing traces of \"am33\" from $i... | |
315 | fi | |
316 | cp $i new | |
317 | sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new | |
318 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
319 | if [ -n "${verbose}" ] ; then | |
320 | echo Caching $i in .Recover... | |
321 | fi | |
322 | mv $i .Recover | |
323 | fi | |
324 | mv new $i | |
325 | fi | |
326 | done | |
327 | fi | |
328 | ||
41cae8d4 | 329 | v850_files="ChangeLog ChangeLog-9697 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 |
330 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
331 | for i in $v850_files ; do | |
332 | if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then | |
333 | if [ -n "${verbose}" ] ; then | |
334 | echo Keeping v850e stuff in $i | |
335 | fi | |
336 | fi | |
337 | done | |
338 | else | |
339 | for i in $v850_files ; do | |
340 | if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then | |
341 | if [ -n "${verbose}" ] ; then | |
342 | echo Removing traces of \"v850e\" from $i... | |
343 | fi | |
344 | cp $i new | |
8988d935 | 345 | sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new |
def47b53 NC |
346 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
347 | if [ -n "${verbose}" ] ; then | |
348 | echo Caching $i in .Recover... | |
349 | fi | |
350 | mv $i .Recover | |
351 | fi | |
352 | mv new $i | |
353 | fi | |
354 | done | |
355 | fi | |
8988d935 | 356 | |
41cae8d4 | 357 | r5900_files="ChangeLog ChangeLog-9697 config.bfd archures.c bfd-in2.h cpu-mips.c elf32-mips.c libbfd.h reloc.c" |
276c2d7d GRK |
358 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
359 | for i in $r5900_files ; do | |
360 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
361 | if [ -n "${verbose}" ] ; then | |
362 | echo Keeping r5900 stuff in $i | |
363 | fi | |
364 | fi | |
365 | done | |
366 | else | |
367 | for i in $r5900_files ; do | |
368 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
369 | if [ -n "${verbose}" ] ; then | |
370 | echo Removing traces of \"r5900\" from $i... | |
371 | fi | |
372 | cp $i new | |
373 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
374 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
375 | if [ -n "${verbose}" ] ; then | |
376 | echo Caching $i in .Recover... | |
377 | fi | |
378 | mv $i .Recover | |
379 | fi | |
380 | mv new $i | |
381 | fi | |
382 | done | |
383 | fi | |
384 | ||
29410c45 JL |
385 | tx19_files="archures.c bfd-in2.h cpu-mips.c" |
386 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then | |
387 | for i in $tx19_files ; do | |
388 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
389 | if [ -n "${verbose}" ] ; then | |
390 | echo Keeping tx19 stuff in $i | |
391 | fi | |
392 | fi | |
393 | done | |
394 | else | |
395 | for i in $tx19_files ; do | |
396 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
397 | if [ -n "${verbose}" ] ; then | |
398 | echo Removing traces of \"tx19\" from $i... | |
399 | fi | |
400 | cp $i new | |
401 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new | |
402 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
403 | if [ -n "${verbose}" ] ; then | |
404 | echo Caching $i in .Recover... | |
405 | fi | |
406 | mv $i .Recover | |
407 | fi | |
408 | mv new $i | |
409 | fi | |
410 | done | |
411 | fi | |
412 | ||
e888ecaa | 413 | tx49_files="archures.c bfd-in2.h cpu-mips.c elf32-mips.c" |
29410c45 JL |
414 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then |
415 | for i in $tx49_files ; do | |
416 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
417 | if [ -n "${verbose}" ] ; then | |
418 | echo Keeping tx49 stuff in $i | |
419 | fi | |
420 | fi | |
421 | done | |
422 | else | |
423 | for i in $tx49_files ; do | |
424 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
425 | if [ -n "${verbose}" ] ; then | |
426 | echo Removing traces of \"tx49\" from $i... | |
427 | fi | |
428 | cp $i new | |
429 | sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new | |
430 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
431 | if [ -n "${verbose}" ] ; then | |
432 | echo Caching $i in .Recover... | |
433 | fi | |
434 | mv $i .Recover | |
435 | fi | |
436 | mv new $i | |
437 | fi | |
438 | done | |
439 | fi | |
440 | ||
41cae8d4 | 441 | tic80_files="ChangeLog ChangeLog-9697 Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h" |
2a0a42d3 FF |
442 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
443 | for i in $tic80_files ; do | |
444 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
445 | if [ -n "${verbose}" ] ; then | |
446 | echo Keeping tic80 stuff in $i | |
447 | fi | |
448 | fi | |
449 | done | |
450 | else | |
451 | for i in $tic80_files ; do | |
452 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
453 | if [ -n "${verbose}" ] ; then | |
454 | echo Removing traces of \"tic80\" from $i... | |
455 | fi | |
456 | cp $i new | |
457 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
458 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
05cedcf6 DE |
459 | if [ -n "${verbose}" ] ; then |
460 | echo Caching $i in .Recover... | |
461 | fi | |
462 | mv $i .Recover | |
463 | fi | |
464 | mv new $i | |
465 | fi | |
466 | done | |
467 | fi | |
468 | ||
1a85826e KR |
469 | cygnus_files="ChangeLog ChangeLog-9697 archures.c bfd-in2.h bfd-in.h cpu-mips.c elf32-mips.c" |
470 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then | |
471 | for i in $cygnus_files ; do | |
472 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
c02ed6a8 | 473 | if [ -n "${verbose}" ] ; then |
1a85826e | 474 | echo Keeping Cygnus stuff in $i |
c02ed6a8 AC |
475 | fi |
476 | fi | |
477 | done | |
478 | else | |
1a85826e KR |
479 | for i in $cygnus_files ; do |
480 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
c02ed6a8 | 481 | if [ -n "${verbose}" ] ; then |
1a85826e | 482 | echo Removing traces of \"cygnus\" from $i... |
c02ed6a8 AC |
483 | fi |
484 | cp $i new | |
3d759c53 | 485 | sed '/start\-sanitize\-cygnus/,/end\-sanitize\-cygnus/d' < $i > new |
c02ed6a8 AC |
486 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
487 | if [ -n "${verbose}" ] ; then | |
488 | echo Caching $i in .Recover... | |
489 | fi | |
490 | mv $i .Recover | |
491 | fi | |
492 | mv new $i | |
493 | fi | |
494 | done | |
495 | fi | |
496 | ||
e888ecaa | 497 | vr4320_files="ChangeLog archures.c bfd-in2.h cpu-mips.c elf32-mips.c" |
ad4413e6 GRK |
498 | if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then |
499 | for i in $vr4320_files ; do | |
500 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
501 | if [ -n "${verbose}" ] ; then | |
502 | echo Keeping vr4320 stuff in $i | |
503 | fi | |
504 | fi | |
505 | done | |
506 | else | |
507 | for i in $vr4320_files ; do | |
508 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
509 | if [ -n "${verbose}" ] ; then | |
510 | echo Removing traces of \"vr4320\" from $i... | |
511 | fi | |
512 | cp $i new | |
513 | sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new | |
514 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
515 | if [ -n "${verbose}" ] ; then | |
516 | echo Caching $i in .Recover... | |
517 | fi | |
518 | mv $i .Recover | |
519 | fi | |
520 | mv new $i | |
521 | fi | |
522 | done | |
523 | fi | |
524 | ||
41cae8d4 | 525 | m32rx_files="ChangeLog ChangeLog-9697 archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c" |
a3240f68 NC |
526 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then |
527 | for i in $m32rx_files ; do | |
528 | if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
529 | if [ -n "${verbose}" ] ; then | |
530 | echo Keeping m32rx stuff in $i | |
531 | fi | |
532 | fi | |
533 | done | |
534 | else | |
535 | for i in $m32rx_files ; do | |
536 | if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
537 | if [ -n "${verbose}" ] ; then | |
538 | echo Removing traces of \"m32rx\" from $i... | |
539 | fi | |
540 | cp $i new | |
541 | sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new | |
542 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
543 | if [ -n "${verbose}" ] ; then | |
544 | echo Caching $i in .Recover... | |
545 | fi | |
546 | mv $i .Recover | |
547 | fi | |
548 | mv new $i | |
549 | fi | |
550 | done | |
551 | fi | |
552 | ||
a25897a9 | 553 | sky_files="ChangeLog archures.c elf32-mips.c reloc.c cpu-mips.c config.bfd configure.in configure bfd-in2.h libbfd.h" |
20b2c808 DE |
554 | if ( echo $* | grep keep\-sky > /dev/null ) ; then |
555 | for i in $sky_files ; do | |
556 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
557 | if [ -n "${verbose}" ] ; then | |
558 | echo Keeping sky stuff in $i | |
559 | fi | |
560 | fi | |
561 | done | |
562 | else | |
563 | for i in $sky_files ; do | |
564 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
565 | if [ -n "${verbose}" ] ; then | |
566 | echo Removing traces of \"sky\" from $i... | |
567 | fi | |
568 | cp $i new | |
569 | sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new | |
570 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
571 | if [ -n "${verbose}" ] ; then | |
572 | echo Caching $i in .Recover... | |
573 | fi | |
574 | mv $i .Recover | |
575 | fi | |
576 | mv new $i | |
577 | fi | |
578 | done | |
579 | fi | |
580 | ||
c86d82ee RH |
581 | beos_files="ChangeLog config.bfd" |
582 | if ( echo $* | grep keep\-beos > /dev/null ) ; then | |
583 | for i in $beos_files ; do | |
584 | if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then | |
585 | if [ -n "${verbose}" ] ; then | |
586 | echo Keeping beos stuff in $i | |
587 | fi | |
588 | fi | |
589 | done | |
590 | else | |
591 | for i in $beos_files ; do | |
592 | if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then | |
593 | if [ -n "${verbose}" ] ; then | |
594 | echo Removing traces of \"beos\" from $i... | |
595 | fi | |
596 | cp $i new | |
597 | sed '/start\-sanitize\-beos/,/end-\sanitize\-beos/d' < $i > new | |
598 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
599 | if [ -n "${verbose}" ] ; then | |
600 | echo Caching $i in .Recover... | |
601 | fi | |
602 | mv $i .Recover | |
603 | fi | |
604 | mv new $i | |
605 | fi | |
606 | done | |
607 | fi | |
608 | ||
ee1e206f | 609 | |
c6167c13 ILT |
610 | for i in *; do |
611 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
612 | echo '***' Some mentions of Sanitize are still left in bfd/$i! 1>&2 | |
613 | fi | |
5c680afd MT |
614 | done |
615 | ||
c6167c13 ILT |
616 | for lost in .. $lose_these_too; do |
617 | if test $lost != ..; then | |
54e4cfaf | 618 | for i in Makefile.am Makefile.in config.bfd configure.host configure.in configure; do |
c6167c13 ILT |
619 | if fgrep $lost $i >/dev/null 2>&1; then |
620 | echo '***' File $lost was sanitized out but is still mentioned in bfd/$i 1>&2 | |
621 | fi | |
622 | done | |
623 | fi | |
624 | done | |
3d96e9b4 TT |
625 | |
626 | # This must come after all other sanitizations. Re-sanitize the .pot | |
627 | # file. | |
628 | if [ -n "${verbose}" ]; then | |
629 | echo Re-computing files for gettext ... | |
630 | fi | |
631 | ||
632 | if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then | |
633 | if [ -n "${verbose}" ]; then | |
634 | echo Caching po/POTFILES.in in .Recover... | |
635 | fi | |
636 | mv po/POTFILES.in po/.Recover | |
637 | fi | |
638 | find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in | |
639 | ||
640 | if [ -n "${safe}" -a ! -f po/.Recover/bfd.pot ]; then | |
641 | if [ -n "${verbose}" ]; then | |
642 | echo Caching po/bfd.pot in .Recover... | |
643 | fi | |
644 | mv po/bfd.pot po/.Recover | |
645 | fi | |
d6f3da9b | 646 | # If this fails, Sanitization must fail. |
c2400a02 | 647 | xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/bfd.pot || exit 1 |
3d96e9b4 | 648 | |
7d2ac701 | 649 | # eof |