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