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