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