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 |
6ac2511d | 145 | dwarf2.c |
dae31cf5 | 146 | ecoff.c |
71efdf83 | 147 | ecofflink.c |
dae31cf5 | 148 | ecoffswap.h |
6ab826bd | 149 | elf-bfd.h |
cef91d75 | 150 | elf.c |
76af94b9 | 151 | elf32-arc.c |
a3c5b9a4 | 152 | elf32-d10v.c |
d39d83c1 | 153 | elf32-gen.c |
c268b400 KR |
154 | elf32-hppa.c |
155 | elf32-hppa.h | |
4743848f KR |
156 | elf32-i386.c |
157 | elf32-i860.c | |
37bdd624 | 158 | elf32-m32r.c |
4743848f | 159 | elf32-m68k.c |
2c4f2c72 JK |
160 | elf32-m88k.c |
161 | elf32-mips.c | |
7a68d1f7 ILT |
162 | elf-m10200.c |
163 | elf-m10300.c | |
45ccfd58 | 164 | elf32-ppc.c |
c86158e5 | 165 | elf32-sh.c |
8d936d1f | 166 | elf32-sparc.c |
15d82b26 | 167 | elf32-v850.c |
4743848f | 168 | elf32.c |
e8f46717 | 169 | elf64-alpha.c |
d39d83c1 | 170 | elf64-gen.c |
d1bf45aa | 171 | elf64-mips.c |
66599384 | 172 | elf64-sparc.c |
4bf86ecb | 173 | elf64.c |
4b18dd1e | 174 | elfxx-target.h |
ef7e172e | 175 | elfcode.h |
ede4eed4 KR |
176 | elfcore.h |
177 | elflink.c | |
178 | elflink.h | |
c3d8e071 ILT |
179 | evax.h |
180 | evax-alpha.c | |
181 | evax-egsd.c | |
182 | evax-emh.c | |
183 | evax-etir.c | |
184 | evax-misc.c | |
08942d11 | 185 | filemode.c |
6f715d66 | 186 | format.c |
767f22d5 | 187 | freebsd.h |
608de555 | 188 | gen-aout.c |
da6b2d99 | 189 | genlink.h |
179ce6e1 | 190 | go32stub.h |
da6b2d99 | 191 | hash.c |
08942d11 | 192 | host-aout.c |
90c7c720 | 193 | hosts |
c3e964b9 | 194 | hp300bsd.c |
c268b400 | 195 | hp300hpux.c |
cef91d75 | 196 | hppa_stubs.h |
8a71bf96 | 197 | hppabsd-core.c |
3f933620 | 198 | hpux-core.c |
b7de6963 | 199 | i386aout.c |
256b39e0 | 200 | i386bsd.c |
bdf1b511 | 201 | i386dynix.c |
767f22d5 | 202 | i386freebsd.c |
afff60cd | 203 | i386linux.c |
a3f7a777 | 204 | i386netbsd.c |
aef0bd99 | 205 | i386lynx.c |
890eafc0 | 206 | i386mach3.c |
7c2c70f3 | 207 | i386msdos.c |
f8ffa548 | 208 | i386os9k.c |
08942d11 | 209 | ieee.c |
ffd15489 | 210 | ihex.c |
c3e964b9 | 211 | init.c |
7ce1a446 | 212 | irix-core.c |
141c97ea | 213 | libaout.h |
901c5bfd | 214 | libbfd-in.h |
08942d11 RP |
215 | libbfd.c |
216 | libbfd.h | |
901c5bfd | 217 | libcoff-in.h |
08942d11 | 218 | libcoff.h |
a3b3dbdd | 219 | libecoff.h |
76b731f9 | 220 | libhppa.h |
08942d11 | 221 | libieee.h |
c3e964b9 | 222 | libnlm.h |
08942d11 | 223 | liboasys.h |
da6b2d99 | 224 | linker.c |
3151f12f | 225 | lynx-core.c |
e295a90d | 226 | m68k4knetbsd.c |
55626bf0 | 227 | m68klinux.c |
eefe075d | 228 | m68klynx.c |
ec35a1c2 | 229 | m68knetbsd.c |
56fbe889 | 230 | m88kmach3.c |
346a6d59 | 231 | makefile.dos |
c3d8e071 | 232 | makefile.vms |
044c1ba9 | 233 | mipsbsd.c |
241d8883 | 234 | mpw-config.in |
63c67f3c | 235 | mpw-make.sed |
08942d11 | 236 | newsos3.c |
fe16107d | 237 | netbsd-core.c |
a3f7a777 | 238 | netbsd.h |
d1f83f44 | 239 | nlm-target.h |
c3e964b9 | 240 | nlm.c |
1bbabdad | 241 | nlm32-alpha.c |
8fa7a236 | 242 | nlm32-i386.c |
7ce8b9d1 | 243 | nlm32-ppc.c |
38f422db | 244 | nlm32-sparc.c |
c3e964b9 | 245 | nlm32.c |
c3e964b9 FF |
246 | nlm64.c |
247 | nlmcode.h | |
38f422db | 248 | nlmswap.h |
c877bdf1 | 249 | ns32k.h |
a3f7a777 | 250 | ns32knetbsd.c |
08942d11 RP |
251 | oasys.c |
252 | opncls.c | |
4346ee0f | 253 | osf-core.c |
56fbe889 | 254 | pc532-mach.c |
a3444c49 | 255 | pe-arm.c |
b297038d | 256 | pe-i386.c |
8d2a09b0 | 257 | pe-ppc.c |
4e98461f | 258 | pei-arm.c |
b297038d | 259 | pei-i386.c |
8d2a09b0 | 260 | pei-ppc.c |
4e98461f | 261 | peicode.h |
0d1fcbbb | 262 | ppcboot.c |
c236d8b3 | 263 | ptrace-core.c |
6f715d66 | 264 | reloc.c |
075caafd | 265 | reloc16.c |
6c3bc2b8 | 266 | riscix.c |
cf15d9e9 | 267 | rs6000-core.c |
6f715d66 | 268 | section.c |
66eca5ee JK |
269 | som.c |
270 | som.h | |
5f792743 | 271 | sparclinux.c |
e3b5bfa8 | 272 | sparclynx.c |
a3f7a777 | 273 | sparcnetbsd.c |
08942d11 | 274 | srec.c |
1726b8f0 | 275 | stabs.c |
7de245d3 | 276 | stab-syms.c |
c0734708 | 277 | stamp-h.in |
08942d11 | 278 | sunos.c |
6f715d66 | 279 | syms.c |
b7577823 | 280 | sysdep.h |
08942d11 | 281 | targets.c |
dee99794 | 282 | targmatch.sed |
a14b2941 | 283 | tekhex.c |
08942d11 | 284 | trad-core.c |
c3c112fc | 285 | versados.c |
dd984644 | 286 | xcofflink.c |
08942d11 | 287 | |
87756e15 RP |
288 | Things-to-lose: |
289 | ||
775d4a40 | 290 | |
08942d11 RP |
291 | Do-last: |
292 | ||
a3d2e13b | 293 | 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 |
294 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then |
295 | for i in $d30v_files ; do | |
296 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
297 | if [ -n "${verbose}" ] ; then | |
298 | echo Keeping d30v stuff in $i | |
299 | fi | |
300 | fi | |
301 | done | |
302 | else | |
303 | for i in $d30v_files ; do | |
304 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
305 | if [ -n "${verbose}" ] ; then | |
306 | echo Removing traces of \"d30v\" from $i... | |
307 | fi | |
308 | cp $i new | |
309 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new | |
310 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
0c1d95c7 C |
311 | if [ -n "${verbose}" ] ; then |
312 | echo Caching $i in .Recover... | |
313 | fi | |
314 | mv $i .Recover | |
315 | fi | |
316 | mv new $i | |
317 | fi | |
318 | done | |
319 | fi | |
320 | ||
2cf9a0d0 | 321 | 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 |
322 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
323 | for i in $v850_files ; do | |
324 | if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then | |
325 | if [ -n "${verbose}" ] ; then | |
326 | echo Keeping v850e stuff in $i | |
327 | fi | |
328 | fi | |
329 | done | |
330 | else | |
331 | for i in $v850_files ; do | |
332 | if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then | |
333 | if [ -n "${verbose}" ] ; then | |
334 | echo Removing traces of \"v850e\" from $i... | |
335 | fi | |
336 | cp $i new | |
8988d935 | 337 | sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new |
def47b53 NC |
338 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
339 | if [ -n "${verbose}" ] ; then | |
340 | echo Caching $i in .Recover... | |
341 | fi | |
342 | mv $i .Recover | |
343 | fi | |
344 | mv new $i | |
345 | fi | |
346 | done | |
347 | fi | |
8988d935 | 348 | |
29410c45 | 349 | r5900_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-mips.c" |
276c2d7d GRK |
350 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
351 | for i in $r5900_files ; do | |
352 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
353 | if [ -n "${verbose}" ] ; then | |
354 | echo Keeping r5900 stuff in $i | |
355 | fi | |
356 | fi | |
357 | done | |
358 | else | |
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 Removing traces of \"r5900\" from $i... | |
363 | fi | |
364 | cp $i new | |
365 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
366 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
367 | if [ -n "${verbose}" ] ; then | |
368 | echo Caching $i in .Recover... | |
369 | fi | |
370 | mv $i .Recover | |
371 | fi | |
372 | mv new $i | |
373 | fi | |
374 | done | |
375 | fi | |
376 | ||
29410c45 JL |
377 | tx19_files="archures.c bfd-in2.h cpu-mips.c" |
378 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then | |
379 | for i in $tx19_files ; do | |
380 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
381 | if [ -n "${verbose}" ] ; then | |
382 | echo Keeping tx19 stuff in $i | |
383 | fi | |
384 | fi | |
385 | done | |
386 | else | |
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 Removing traces of \"tx19\" from $i... | |
391 | fi | |
392 | cp $i new | |
393 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new | |
394 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
395 | if [ -n "${verbose}" ] ; then | |
396 | echo Caching $i in .Recover... | |
397 | fi | |
398 | mv $i .Recover | |
399 | fi | |
400 | mv new $i | |
401 | fi | |
402 | done | |
403 | fi | |
404 | ||
405 | tx49_files="archures.c bfd-in2.h cpu-mips.c" | |
406 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then | |
407 | for i in $tx49_files ; do | |
408 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
409 | if [ -n "${verbose}" ] ; then | |
410 | echo Keeping tx49 stuff in $i | |
411 | fi | |
412 | fi | |
413 | done | |
414 | else | |
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 Removing traces of \"tx49\" from $i... | |
419 | fi | |
420 | cp $i new | |
421 | sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new | |
422 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
423 | if [ -n "${verbose}" ] ; then | |
424 | echo Caching $i in .Recover... | |
425 | fi | |
426 | mv $i .Recover | |
427 | fi | |
428 | mv new $i | |
429 | fi | |
430 | done | |
431 | fi | |
432 | ||
f40d28bf AC |
433 | sh4_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-sh.c" |
434 | if ( echo $* | grep keep\-sh4 > /dev/null ) ; then | |
435 | for i in $sh4_files ; do | |
436 | if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then | |
437 | if [ -n "${verbose}" ] ; then | |
438 | echo Keeping sh4 stuff in $i | |
439 | fi | |
440 | fi | |
441 | done | |
442 | else | |
443 | for i in $sh4_files ; do | |
444 | if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then | |
445 | if [ -n "${verbose}" ] ; then | |
446 | echo Removing traces of \"sh4\" from $i... | |
447 | fi | |
448 | cp $i new | |
449 | sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new | |
450 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
451 | if [ -n "${verbose}" ] ; then | |
452 | echo Caching $i in .Recover... | |
453 | fi | |
454 | mv $i .Recover | |
455 | fi | |
456 | mv new $i | |
457 | fi | |
458 | done | |
459 | fi | |
460 | ||
a3d2e13b | 461 | 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 |
462 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
463 | for i in $tic80_files ; do | |
464 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
465 | if [ -n "${verbose}" ] ; then | |
466 | echo Keeping tic80 stuff in $i | |
467 | fi | |
468 | fi | |
469 | done | |
470 | else | |
471 | for i in $tic80_files ; do | |
472 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
473 | if [ -n "${verbose}" ] ; then | |
474 | echo Removing traces of \"tic80\" from $i... | |
475 | fi | |
476 | cp $i new | |
477 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
478 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
05cedcf6 DE |
479 | if [ -n "${verbose}" ] ; then |
480 | echo Caching $i in .Recover... | |
481 | fi | |
482 | mv $i .Recover | |
483 | fi | |
484 | mv new $i | |
485 | fi | |
486 | done | |
487 | fi | |
488 | ||
d6d44ef9 SG |
489 | gm_files="ChangeLog ChangeLog.2 config.bfd" |
490 | if ( echo $* | grep keep\-gm > /dev/null ) ; then | |
491 | for i in $gm_files ; do | |
492 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
493 | if [ -n "${verbose}" ] ; then | |
494 | echo Keeping gm stuff in $i | |
495 | fi | |
496 | fi | |
497 | done | |
498 | else | |
499 | for i in $gm_files ; do | |
500 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
501 | if [ -n "${verbose}" ] ; then | |
502 | echo Removing traces of \"gm\" from $i... | |
503 | fi | |
504 | cp $i new | |
505 | sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new | |
506 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
507 | if [ -n "${verbose}" ] ; then | |
508 | echo Caching $i in .Recover... | |
509 | fi | |
510 | mv $i .Recover | |
511 | fi | |
512 | mv new $i | |
513 | fi | |
514 | done | |
515 | fi | |
516 | ||
c02ed6a8 AC |
517 | vr5400_files="ChangeLog archures.c bfd-in2.h bfd-in.h cpu-mips.c" |
518 | if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then | |
519 | for i in $vr5400_files ; do | |
520 | if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then | |
521 | if [ -n "${verbose}" ] ; then | |
522 | echo Keeping vr5400 stuff in $i | |
523 | fi | |
524 | fi | |
525 | done | |
526 | else | |
527 | for i in $vr5400_files ; do | |
528 | if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then | |
529 | if [ -n "${verbose}" ] ; then | |
530 | echo Removing traces of \"vr5400\" from $i... | |
531 | fi | |
532 | cp $i new | |
533 | sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new | |
534 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
535 | if [ -n "${verbose}" ] ; then | |
536 | echo Caching $i in .Recover... | |
537 | fi | |
538 | mv $i .Recover | |
539 | fi | |
540 | mv new $i | |
541 | fi | |
542 | done | |
543 | fi | |
544 | ||
a3240f68 NC |
545 | m32rx_files="ChangeLog archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c" |
546 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then | |
547 | for i in $m32rx_files ; do | |
548 | if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
549 | if [ -n "${verbose}" ] ; then | |
550 | echo Keeping m32rx stuff in $i | |
551 | fi | |
552 | fi | |
553 | done | |
554 | else | |
555 | for i in $m32rx_files ; do | |
556 | if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
557 | if [ -n "${verbose}" ] ; then | |
558 | echo Removing traces of \"m32rx\" from $i... | |
559 | fi | |
560 | cp $i new | |
561 | sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new | |
562 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
563 | if [ -n "${verbose}" ] ; then | |
564 | echo Caching $i in .Recover... | |
565 | fi | |
566 | mv $i .Recover | |
567 | fi | |
568 | mv new $i | |
569 | fi | |
570 | done | |
571 | fi | |
572 | ||
36df40e0 | 573 | sky_files="ChangeLog archures.c reloc.c cpu-mips.c config.bfd configure.in configure bfd-in2.h libbfd.h" |
20b2c808 DE |
574 | if ( echo $* | grep keep\-sky > /dev/null ) ; then |
575 | for i in $sky_files ; do | |
576 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
577 | if [ -n "${verbose}" ] ; then | |
578 | echo Keeping sky stuff in $i | |
579 | fi | |
580 | fi | |
581 | done | |
582 | else | |
583 | for i in $sky_files ; do | |
584 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
585 | if [ -n "${verbose}" ] ; then | |
586 | echo Removing traces of \"sky\" from $i... | |
587 | fi | |
588 | cp $i new | |
589 | sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new | |
590 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
591 | if [ -n "${verbose}" ] ; then | |
592 | echo Caching $i in .Recover... | |
593 | fi | |
594 | mv $i .Recover | |
595 | fi | |
596 | mv new $i | |
597 | fi | |
598 | done | |
599 | fi | |
600 | ||
5c680afd MT |
601 | for i in * ; do |
602 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
603 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
604 | fi | |
605 | done | |
606 | ||
08942d11 | 607 | # End of file. |