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