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