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