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