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