These changes cut the size of libbfd.a on a Sun4 by about 11%.
[deliverable/binutils-gdb.git] / bfd / .Sanitize
1 # Sanitize.in for devo/bfd.
2
3 # Each directory to survive it's way into a release will need a file
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
14 # done in this
15
16 Do-first:
17
18 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25 COPYING
26 PORTING
27 doc
28 ChangeLog
29 Makefile.dos
30 Makefile.in
31 TODO
32 VERSION
33 aix386-core.c
34 aout32.c
35 aout64.c
36 aoutf1.h
37 aoutx.h
38 aout-adobe.c
39 aout-encap.c
40 aout-target.h
41 archive.c
42 archures.c
43 bfd-in.h
44 bfd.c
45 bout.c
46 cache.c
47 ctor.c
48 coff-a29k.c
49 coff-h8300.c
50 coff-i386.c
51 coff-i960.c
52 coff-m68k.c
53 coff-m88k.c
54 coff-mips.c
55 coff-msym.c
56 coff-rs6000.c
57 coff-we32k.c
58 coff-z8k.c
59 coffcode.h
60 coffgen.c
61 coffswap.h
62 config
63 configure.bat
64 configure.in
65 configure.host
66 core.c
67 demo64.c
68 elf.c
69 filemode.c
70 format.c
71 gen-aout.c
72 host-aout.c
73 hosts
74 hppa.c
75 i386aout.c
76 i386bsd.c
77 i386linux.c
78 ieee.c
79 libaout.h
80 libbfd-in.h
81 cpu-a29k.c
82 cpu-i386.c
83 cpu-m68k.c
84 cpu-mips.c
85 cpu-vax.c
86 cpu-h8300.c
87 cpu-hppa.c
88 cpu-i960.c
89 cpu-m88k.c
90 cpu-rs6000.c
91 cpu-we32k.c
92 cpu-z8k.c
93 hp300bsd.c
94 init.c
95 cpu-sparc.c
96 libbfd.c
97 libbfd.h
98 libcoff-in.h
99 libcoff.h
100 libhppa.h
101 libieee.h
102 liboasys.h
103 newsos3.c
104 oasys.c
105 opncls.c
106 reloc.c
107 reloc16.c
108 rs6000-core.c
109 sco-core.c
110 seclet.c
111 seclet.h
112 section.c
113 srec.c
114 stab-syms.c
115 sunos.c
116 syms.c
117 targets.c
118 tekhex.c
119 trad-core.c
120
121 Do-last:
122
123 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
124 echo Keeping v9 in aoutx.h
125 else
126 echo Sanitizing v9 in aoutx.h
127 rm -f new
128 while grep -s start-sanitize-v9 aoutx.h ; do
129 sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new
130 if [ -n "${safe}" ] ; then
131 mv aoutx.h .Recover
132 else
133 rm aoutx.h
134 fi
135 mv new aoutx.h
136 done
137 fi
138
139 echo Done in `pwd`.
140
141 # End of file.
This page took 0.033445 seconds and 5 git commands to generate.