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