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