* elf32-v850.c: Add comments about assumptions about
[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 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-mn10200.c
141 cpu-mn10300.c
142 cpu-ns32k.c
143 cpu-powerpc.c
144 cpu-rs6000.c
145 cpu-sh.c
146 cpu-sparc.c
147 cpu-vax.c
148 cpu-we32k.c
149 cpu-w65.c
150 cpu-z8k.c
151 demo64.c
152 dep-in.sed
153 doc
154 ecoff.c
155 ecofflink.c
156 ecoffswap.h
157 elf-bfd.h
158 elf.c
159 elf32-gen.c
160 elf32-hppa.c
161 elf32-hppa.h
162 elf32-i386.c
163 elf32-i860.c
164 elf32-m68k.c
165 elf32-m88k.c
166 elf32-mips.c
167 elf32-mn10200.c
168 elf32-mn10300.c
169 elf32-ppc.c
170 elf32-sh.c
171 elf32-sparc.c
172 elf32.c
173 elf64-alpha.c
174 elf64-gen.c
175 elf64-mips.c
176 elf64-sparc.c
177 elf64.c
178 elfxx-target.h
179 elfcode.h
180 elfcore.h
181 elflink.c
182 elflink.h
183 evax.h
184 evax-alpha.c
185 evax-egsd.c
186 evax-emh.c
187 evax-etir.c
188 evax-misc.c
189 filemode.c
190 format.c
191 freebsd.h
192 gen-aout.c
193 genlink.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 sparclynx.c
275 sparcnetbsd.c
276 srec.c
277 stabs.c
278 stab-syms.c
279 sunos.c
280 syms.c
281 sysdep.h
282 targets.c
283 targmatch.sed
284 tekhex.c
285 trad-core.c
286 versados.c
287 xcofflink.c
288
289 Things-to-lose:
290
291
292 Do-last:
293
294 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"
295 if ( echo $* | grep keep\-arc > /dev/null ) ; then
296 for i in $arc_files ; do
297 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
298 if [ -n "${verbose}" ] ; then
299 echo Keeping arc stuff in $i
300 fi
301 fi
302 done
303 else
304 for i in $arc_files ; do
305 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
306 if [ -n "${verbose}" ] ; then
307 echo Removing traces of \"arc\" from $i...
308 fi
309 cp $i new
310 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
311 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
312 if [ -n "${verbose}" ] ; then
313 echo Caching $i in .Recover...
314 fi
315 mv $i .Recover
316 fi
317 mv new $i
318 fi
319 done
320 fi
321
322 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"
323 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
324 for i in $d10v_files ; do
325 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
326 if [ -n "${verbose}" ] ; then
327 echo Keeping d10v stuff in $i
328 fi
329 fi
330 done
331 else
332 for i in $d10v_files ; do
333 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
334 if [ -n "${verbose}" ] ; then
335 echo Removing traces of \"d10v\" from $i...
336 fi
337 cp $i new
338 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
339 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
340 if [ -n "${verbose}" ] ; then
341 echo Caching $i in .Recover...
342 fi
343 mv $i .Recover
344 fi
345 mv new $i
346 fi
347 done
348 fi
349
350 m32r_files="ChangeLog Makefile.in config.bfd configure.in configure elf.c archures.c reloc.c targets.c bfd-in2.h libbfd.h"
351 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
352 for i in $m32r_files ; do
353 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
354 if [ -n "${verbose}" ] ; then
355 echo Keeping m32r stuff in $i
356 fi
357 fi
358 done
359 else
360 for i in $m32r_files ; do
361 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
362 if [ -n "${verbose}" ] ; then
363 echo Removing traces of \"m32r\" from $i...
364 fi
365 cp $i new
366 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/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 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"
379 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
380 for i in $v850_files ; do
381 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
382 if [ -n "${verbose}" ] ; then
383 echo Keeping v850 stuff in $i
384 fi
385 fi
386 done
387 else
388 for i in $v850_files ; do
389 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
390 if [ -n "${verbose}" ] ; then
391 echo Removing traces of \"v850\" from $i...
392 fi
393 cp $i new
394 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/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 gm_files="ChangeLog ChangeLog.2 config.bfd"
407 if ( echo $* | grep keep\-gm > /dev/null ) ; then
408 for i in $gm_files ; do
409 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
410 if [ -n "${verbose}" ] ; then
411 echo Keeping gm stuff in $i
412 fi
413 fi
414 done
415 else
416 for i in $gm_files ; do
417 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
418 if [ -n "${verbose}" ] ; then
419 echo Removing traces of \"gm\" from $i...
420 fi
421 cp $i new
422 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/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 for i in * ; do
435 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
436 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
437 fi
438 done
439
440 # End of file.
This page took 0.040476 seconds and 4 git commands to generate.