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