* elfcode.h (elf_map_symbols): Only use section symbols whose
[deliverable/binutils-gdb.git] / bfd / .Sanitize
1 # .Sanitize for devo/bfd.
2
3 # Each directory to survive its 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 directory.
15
16 Do-first:
17
18 mpw_files="mpw-config.in mpw-make.in ChangeLog.mpw"
19
20 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
21 keep_these_too="${mpw_files} ${keep_these_too}"
22 else
23 lose_these_too="${mpw_files} ${lose_these_too}"
24 fi
25
26 rce_files="cpu-rce.c aout-rce.c"
27
28 if ( echo $* | grep keep\-rce > /dev/null ) ; then
29 keep_these_too="${rce_files} ${keep_these_too}"
30 else
31 lose_these_too="${rce_files} ${lose_these_too}"
32 fi
33
34 arc_files="cpu-arc.c elf32-arc.c"
35
36 if ( echo $* | grep keep\-arc > /dev/null ) ; then
37 keep_these_too="${arc_files} ${keep_these_too}"
38 else
39 lose_these_too="${arc_files} ${lose_these_too}"
40 fi
41
42 # All files listed between the "Things-to-keep:" line and the
43 # "Files-to-sed:" line will be kept. All other files will be removed.
44 # Directories listed in this section will have their own Sanitize
45 # called. Directories not listed will be removed in their entirety
46 # with rm -rf.
47
48 Things-to-keep:
49
50 COPYING
51 ChangeLog
52 ChangeLog.1
53 Makefile.in
54 PORTING
55 TODO
56 VERSION
57 aix386-core.c
58 aout-adobe.c
59 aout-encap.c
60 aout-ns32k.c
61 aout-target.h
62 aout0.c
63 aout32.c
64 aout64.c
65 aoutf1.h
66 aoutx.h
67 archive.c
68 archures.c
69 bfd-in.h
70 bfd-in2.h
71 bfd.c
72 binary.c
73 bout.c
74 cache.c
75 cf-i386lynx.c
76 cf-m68klynx.c
77 cf-sparclynx.c
78 cisco-core.c
79 coff-a29k.c
80 coff-alpha.c
81 coff-apollo.c
82 coff-go32.c
83 coff-h8300.c
84 coff-h8500.c
85 coff-i386.c
86 coff-i960.c
87 coff-m68k.c
88 coff-m88k.c
89 coff-mips.c
90 coff-rs6000.c
91 coff-sh.c
92 coff-sparc.c
93 coff-u68k.c
94 coff-we32k.c
95 coff-z8k.c
96 coffcode.h
97 coffgen.c
98 cofflink.c
99 coffswap.h
100 config
101 config.bfd
102 configure.bat
103 configure.host
104 configure.in
105 core.c
106 cpu-a29k.c
107 cpu-alpha.c
108 cpu-arm.c
109 cpu-h8300.c
110 cpu-h8500.c
111 cpu-hppa.c
112 cpu-i386.c
113 cpu-i960.c
114 cpu-m68k.c
115 cpu-m88k.c
116 cpu-mips.c
117 cpu-ns32k.c
118 cpu-powerpc.c
119 cpu-rs6000.c
120 cpu-sh.c
121 cpu-sparc.c
122 cpu-vax.c
123 cpu-we32k.c
124 cpu-z8k.c
125 demo64.c
126 dep-in.sed
127 doc
128 ecoff.c
129 ecofflink.c
130 ecoffswap.h
131 elf.c
132 elf32-gen.c
133 elf32-hppa.c
134 elf32-hppa.h
135 elf32-i386.c
136 elf32-i860.c
137 elf32-m68k.c
138 elf32-m88k.c
139 elf32-mips.c
140 elf32-ppc.c
141 elf32-sparc.c
142 elf32-target.h
143 elf32.c
144 elf64-gen.c
145 elf64-sparc.c
146 elf64-target.h
147 elf64.c
148 elfcode.h
149 filemode.c
150 format.c
151 gen-aout.c
152 genlink.h
153 hash.c
154 host-aout.c
155 hosts
156 hp300bsd.c
157 hp300hpux.c
158 hppa_stubs.h
159 hppabsd-core.c
160 hpux-core.c
161 i386aout.c
162 i386bsd.c
163 i386dynix.c
164 i386linux.c
165 i386netbsd.c
166 i386lynx.c
167 i386mach3.c
168 i386os9k.c
169 ieee.c
170 init.c
171 irix-core.c
172 libaout.h
173 libbfd-in.h
174 libbfd.c
175 libbfd.h
176 libcoff-in.h
177 libcoff.h
178 libecoff.h
179 libelf.h
180 libhppa.h
181 libieee.h
182 libnlm.h
183 liboasys.h
184 linker.c
185 lynx-core.c
186 m68klynx.c
187 m68knetbsd.c
188 m88kmach3.c
189 makefile.dos
190 mipsbsd.c
191 newsos3.c
192 netbsd.h
193 nlm-target.h
194 nlm.c
195 nlm32-alpha.c
196 nlm32-i386.c
197 nlm32-ppc.c
198 nlm32-sparc.c
199 nlm32.c
200 nlm64.c
201 nlmcode.h
202 nlmswap.h
203 ns32knetbsd.c
204 oasys.c
205 opncls.c
206 osf-core.c
207 pc532-mach.c
208 ptrace-core.c
209 reloc.c
210 reloc16.c
211 riscix.c
212 rs6000-core.c
213 section.c
214 som.c
215 som.h
216 sparclynx.c
217 sparcnetbsd.c
218 srec.c
219 stab-syms.c
220 sunos.c
221 syms.c
222 targets.c
223 tekhex.c
224 trad-core.c
225
226 Things-to-lose:
227
228
229 Do-last:
230
231 mpwfiles="ecoffswap.h coffswap.h"
232 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
233 if [ -n "${verbose}" ] ; then
234 echo Keeping mpw stuff in $mpwfiles.
235 fi
236 else
237 if [ -n "${verbose}" ]; then
238 echo -n Cleaning mpw in `pwd`:
239 fi
240 for f in $mpwfiles ; do
241 if [ -n "${verbose}" ] ; then
242 echo -n " " $f
243 fi
244 sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new
245 if [ -n "${safe}" ] ; then
246 mv $f .Recover
247 fi
248 mv new $f
249 done
250 chmod a+x config.bfd
251 fi
252
253 i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h"
254 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
255 if [ -n "${verbose}" ] ; then
256 echo Keeping i960xl stuff in $i960xl_files.
257 fi
258 else
259 if [ -n "${verbose}" ]; then
260 echo -n Cleaning i960xl in `pwd`:
261 fi
262 for f in $i960xl_files ; do
263 if [ -n "${verbose}" ] ; then
264 echo -n " " $f
265 fi
266 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
267 if [ -n "${safe}" ] ; then
268 mv $f .Recover
269 fi
270 mv new $f
271 done
272 fi
273
274 rce_files="ChangeLog archures.c bfd-in2.h config.bfd configure.in targets.c aoutx.h libaout.h"
275 if ( echo $* | grep keep\-rce > /dev/null ) ; then
276 for i in $rce_files ; do
277 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
278 if [ -n "${verbose}" ] ; then
279 echo Keeping rce stuff in $i
280 fi
281 fi
282 done
283 else
284 for i in $rce_files ; do
285 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
286 if [ -n "${verbose}" ] ; then
287 echo Removing traces of \"rce\" from $i...
288 fi
289 cp $i new
290 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
291 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
292 if [ -n "${verbose}" ] ; then
293 echo Caching $i in .Recover...
294 fi
295 mv $i .Recover
296 fi
297 mv new $i
298 fi
299 done
300 fi
301
302 arc_files="ChangeLog archures.c reloc.c targets.c config.bfd configure.in bfd-in2.h elfcode.h libbfd.h"
303 if ( echo $* | grep keep\-arc > /dev/null ) ; then
304 for i in $arc_files ; do
305 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
306 if [ -n "${verbose}" ] ; then
307 echo Keeping arc stuff in $i
308 fi
309 fi
310 done
311 else
312 for i in $arc_files ; do
313 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
314 if [ -n "${verbose}" ] ; then
315 echo Removing traces of \"arc\" from $i...
316 fi
317 cp $i new
318 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
319 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
320 if [ -n "${verbose}" ] ; then
321 echo Caching $i in .Recover...
322 fi
323 mv $i .Recover
324 fi
325 mv new $i
326 fi
327 done
328 fi
329
330 for i in * ; do
331 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
332 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
333 fi
334 done
335
336 # End of file.
This page took 0.047561 seconds and 4 git commands to generate.