* configure.in: Set enable_shared before AM_PROG_LIBTOOL.
[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 arc_files="cpu-arc.c elf32-arc.c"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 else
23 lose_these_too="${arc_files} ${lose_these_too}"
24 fi
25
26 d30v_files="cpu-d30v.c elf32-d30v.c"
27
28 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
29 keep_these_too="${d30v_files} ${keep_these_too}"
30 else
31 lose_these_too="${d30v_files} ${lose_these_too}"
32 fi
33
34 v850_files="cpu-v850.c elf32-v850.c"
35
36 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37 keep_these_too="${v850_files} ${keep_these_too}"
38 else
39 lose_these_too="${v850_files} ${lose_these_too}"
40 fi
41
42 tic80_files="cpu-tic80.c coff-tic80.c"
43
44 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45 keep_these_too="${tic80_files} ${keep_these_too}"
46 else
47 lose_these_too="${tic80_files} ${lose_these_too}"
48 fi
49
50 # All files listed between the "Things-to-keep:" line and the
51 # "Files-to-sed:" line will be kept. All other files will be removed.
52 # Directories listed in this section will have their own Sanitize
53 # called. Directories not listed will be removed in their entirety
54 # with rm -rf.
55
56 Things-to-keep:
57
58 COPYING
59 ChangeLog
60 ChangeLog.1
61 ChangeLog.2
62 Makefile.am
63 Makefile.in
64 PORTING
65 README
66 TODO
67 acconfig.h
68 acinclude.m4
69 aclocal.m4
70 aix386-core.c
71 aout-adobe.c
72 aout-arm.c
73 aout-encap.c
74 aout-ns32k.c
75 aout-sparcle.c
76 aout-target.h
77 aout0.c
78 aout32.c
79 aout64.c
80 aoutf1.h
81 aoutx.h
82 archive.c
83 archures.c
84 bfd-in.h
85 bfd-in2.h
86 bfd.c
87 binary.c
88 bout.c
89 cache.c
90 cf-i386lynx.c
91 cf-m68klynx.c
92 cf-sparclynx.c
93 cisco-core.c
94 coff-a29k.c
95 coff-alpha.c
96 coff-apollo.c
97 coff-arm.c
98 coff-aux.c
99 coff-go32.c
100 coff-h8300.c
101 coff-h8500.c
102 coff-i386.c
103 coff-i860.c
104 coff-i960.c
105 coff-m68k.c
106 coff-m88k.c
107 coff-mips.c
108 coff-pmac.c
109 coff-ppc.c
110 coff-rs6000.c
111 coff-sh.c
112 coff-sparc.c
113 coff-stubgo32.c
114 coff-svm68k.c
115 coff-u68k.c
116 coff-we32k.c
117 coff-w65.c
118 coff-z8k.c
119 coffcode.h
120 coffgen.c
121 cofflink.c
122 coffswap.h
123 config.bfd
124 config.in
125 configure
126 configure.bat
127 configure.com
128 configure.host
129 configure.in
130 corefile.c
131 cpu-a29k.c
132 cpu-alpha.c
133 cpu-arm.c
134 cpu-d10v.c
135 cpu-h8300.c
136 cpu-h8500.c
137 cpu-hppa.c
138 cpu-i386.c
139 cpu-i860.c
140 cpu-i960.c
141 cpu-m32r.c
142 cpu-m68k.c
143 cpu-m88k.c
144 cpu-mips.c
145 cpu-m10200.c
146 cpu-m10300.c
147 cpu-ns32k.c
148 cpu-powerpc.c
149 cpu-rs6000.c
150 cpu-sh.c
151 cpu-sparc.c
152 cpu-vax.c
153 cpu-we32k.c
154 cpu-w65.c
155 cpu-z8k.c
156 demo64.c
157 dep-in.sed
158 doc
159 ecoff.c
160 ecofflink.c
161 ecoffswap.h
162 elf-bfd.h
163 elf.c
164 elf32-d10v.c
165 elf32-gen.c
166 elf32-hppa.c
167 elf32-hppa.h
168 elf32-i386.c
169 elf32-i860.c
170 elf32-m32r.c
171 elf32-m68k.c
172 elf32-m88k.c
173 elf32-mips.c
174 elf-m10200.c
175 elf-m10300.c
176 elf32-ppc.c
177 elf32-sh.c
178 elf32-sparc.c
179 elf32.c
180 elf64-alpha.c
181 elf64-gen.c
182 elf64-mips.c
183 elf64-sparc.c
184 elf64.c
185 elfxx-target.h
186 elfcode.h
187 elfcore.h
188 elflink.c
189 elflink.h
190 evax.h
191 evax-alpha.c
192 evax-egsd.c
193 evax-emh.c
194 evax-etir.c
195 evax-misc.c
196 filemode.c
197 format.c
198 freebsd.h
199 gen-aout.c
200 genlink.h
201 go32stub.h
202 hash.c
203 host-aout.c
204 hosts
205 hp300bsd.c
206 hp300hpux.c
207 hppa_stubs.h
208 hppabsd-core.c
209 hpux-core.c
210 i386aout.c
211 i386bsd.c
212 i386dynix.c
213 i386freebsd.c
214 i386linux.c
215 i386netbsd.c
216 i386lynx.c
217 i386mach3.c
218 i386msdos.c
219 i386os9k.c
220 ieee.c
221 ihex.c
222 init.c
223 irix-core.c
224 libaout.h
225 libbfd-in.h
226 libbfd.c
227 libbfd.h
228 libcoff-in.h
229 libcoff.h
230 libecoff.h
231 libhppa.h
232 libieee.h
233 libnlm.h
234 liboasys.h
235 linker.c
236 lynx-core.c
237 m68k4knetbsd.c
238 m68klinux.c
239 m68klynx.c
240 m68knetbsd.c
241 m88kmach3.c
242 makefile.dos
243 makefile.vms
244 mipsbsd.c
245 mpw-config.in
246 mpw-make.sed
247 newsos3.c
248 netbsd-core.c
249 netbsd.h
250 nlm-target.h
251 nlm.c
252 nlm32-alpha.c
253 nlm32-i386.c
254 nlm32-ppc.c
255 nlm32-sparc.c
256 nlm32.c
257 nlm64.c
258 nlmcode.h
259 nlmswap.h
260 ns32k.h
261 ns32knetbsd.c
262 oasys.c
263 opncls.c
264 osf-core.c
265 pc532-mach.c
266 pe-arm.c
267 pe-i386.c
268 pe-ppc.c
269 pei-arm.c
270 pei-i386.c
271 pei-ppc.c
272 peicode.h
273 ppcboot.c
274 ptrace-core.c
275 reloc.c
276 reloc16.c
277 riscix.c
278 rs6000-core.c
279 section.c
280 som.c
281 som.h
282 sparclinux.c
283 sparclynx.c
284 sparcnetbsd.c
285 srec.c
286 stabs.c
287 stab-syms.c
288 stamp-h.in
289 sunos.c
290 syms.c
291 sysdep.h
292 targets.c
293 targmatch.sed
294 tekhex.c
295 trad-core.c
296 versados.c
297 xcofflink.c
298
299 Things-to-lose:
300
301
302 Do-last:
303
304 arc_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"
305 if ( echo $* | grep keep\-arc > /dev/null ) ; then
306 for i in $arc_files ; do
307 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
308 if [ -n "${verbose}" ] ; then
309 echo Keeping arc stuff in $i
310 fi
311 fi
312 done
313 else
314 for i in $arc_files ; do
315 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
316 if [ -n "${verbose}" ] ; then
317 echo Removing traces of \"arc\" from $i...
318 fi
319 cp $i new
320 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
321 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
322 if [ -n "${verbose}" ] ; then
323 echo Caching $i in .Recover...
324 fi
325 mv $i .Recover
326 fi
327 mv new $i
328 fi
329 done
330 fi
331
332 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"
333 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
334 for i in $d30v_files ; do
335 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
336 if [ -n "${verbose}" ] ; then
337 echo Keeping d30v stuff in $i
338 fi
339 fi
340 done
341 else
342 for i in $d30v_files ; do
343 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
344 if [ -n "${verbose}" ] ; then
345 echo Removing traces of \"d30v\" from $i...
346 fi
347 cp $i new
348 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
349 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
350 if [ -n "${verbose}" ] ; then
351 echo Caching $i in .Recover...
352 fi
353 mv $i .Recover
354 fi
355 mv new $i
356 fi
357 done
358 fi
359
360 v850_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"
361 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
362 for i in $v850_files ; do
363 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
364 if [ -n "${verbose}" ] ; then
365 echo Keeping v850 stuff in $i
366 fi
367 fi
368 done
369 else
370 for i in $v850_files ; do
371 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
372 if [ -n "${verbose}" ] ; then
373 echo Removing traces of \"v850\" from $i...
374 fi
375 cp $i new
376 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
377 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
378 if [ -n "${verbose}" ] ; then
379 echo Caching $i in .Recover...
380 fi
381 mv $i .Recover
382 fi
383 mv new $i
384 fi
385 done
386 fi
387
388 r5900_files="ChangeLog config.bfd"
389 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
390 for i in $r5900_files ; do
391 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
392 if [ -n "${verbose}" ] ; then
393 echo Keeping r5900 stuff in $i
394 fi
395 fi
396 done
397 else
398 for i in $r5900_files ; do
399 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
400 if [ -n "${verbose}" ] ; then
401 echo Removing traces of \"r5900\" from $i...
402 fi
403 cp $i new
404 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
405 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
406 if [ -n "${verbose}" ] ; then
407 echo Caching $i in .Recover...
408 fi
409 mv $i .Recover
410 fi
411 mv new $i
412 fi
413 done
414 fi
415
416 tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
417 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
418 for i in $tic80_files ; do
419 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
420 if [ -n "${verbose}" ] ; then
421 echo Keeping tic80 stuff in $i
422 fi
423 fi
424 done
425 else
426 for i in $tic80_files ; do
427 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
428 if [ -n "${verbose}" ] ; then
429 echo Removing traces of \"tic80\" from $i...
430 fi
431 cp $i new
432 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
433 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
434 if [ -n "${verbose}" ] ; then
435 echo Caching $i in .Recover...
436 fi
437 mv $i .Recover
438 fi
439 mv new $i
440 fi
441 done
442 fi
443
444 gm_files="ChangeLog ChangeLog.2 config.bfd"
445 if ( echo $* | grep keep\-gm > /dev/null ) ; then
446 for i in $gm_files ; do
447 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
448 if [ -n "${verbose}" ] ; then
449 echo Keeping gm stuff in $i
450 fi
451 fi
452 done
453 else
454 for i in $gm_files ; do
455 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
456 if [ -n "${verbose}" ] ; then
457 echo Removing traces of \"gm\" from $i...
458 fi
459 cp $i new
460 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
461 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
462 if [ -n "${verbose}" ] ; then
463 echo Caching $i in .Recover...
464 fi
465 mv $i .Recover
466 fi
467 mv new $i
468 fi
469 done
470 fi
471
472 for i in * ; do
473 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
474 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
475 fi
476 done
477
478 # End of file.
This page took 0.038973 seconds and 5 git commands to generate.