* Makefile.in (ALL_MACHINES): Add cpu-v850.o.
[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-sparc.c
157 elf32.c
158 elf64-alpha.c
159 elf64-gen.c
160 elf64-mips.c
161 elf64-sparc.c
162 elf64.c
163 elfxx-target.h
164 elfcode.h
165 elfcore.h
166 elflink.c
167 elflink.h
168 evax.h
169 evax-alpha.c
170 evax-egsd.c
171 evax-emh.c
172 evax-etir.c
173 evax-misc.c
174 filemode.c
175 format.c
176 freebsd.h
177 gen-aout.c
178 genlink.h
179 hash.c
180 host-aout.c
181 hosts
182 hp300bsd.c
183 hp300hpux.c
184 hppa_stubs.h
185 hppabsd-core.c
186 hpux-core.c
187 i386aout.c
188 i386bsd.c
189 i386dynix.c
190 i386freebsd.c
191 i386linux.c
192 i386netbsd.c
193 i386lynx.c
194 i386mach3.c
195 i386msdos.c
196 i386os9k.c
197 ieee.c
198 ihex.c
199 init.c
200 irix-core.c
201 libaout.h
202 libbfd-in.h
203 libbfd.c
204 libbfd.h
205 libcoff-in.h
206 libcoff.h
207 libecoff.h
208 libhppa.h
209 libieee.h
210 libnlm.h
211 liboasys.h
212 linker.c
213 lynx-core.c
214 m68k4knetbsd.c
215 m68klinux.c
216 m68klynx.c
217 m68knetbsd.c
218 m88kmach3.c
219 makefile.dos
220 makefile.vms
221 mipsbsd.c
222 mpw-config.in
223 mpw-make.sed
224 newsos3.c
225 netbsd-core.c
226 netbsd.h
227 nlm-target.h
228 nlm.c
229 nlm32-alpha.c
230 nlm32-i386.c
231 nlm32-ppc.c
232 nlm32-sparc.c
233 nlm32.c
234 nlm64.c
235 nlmcode.h
236 nlmswap.h
237 ns32k.h
238 ns32knetbsd.c
239 oasys.c
240 opncls.c
241 osf-core.c
242 pc532-mach.c
243 pe-arm.c
244 pe-i386.c
245 pe-ppc.c
246 pei-arm.c
247 pei-i386.c
248 pei-ppc.c
249 peicode.h
250 ppcboot.c
251 ptrace-core.c
252 reloc.c
253 reloc16.c
254 riscix.c
255 rs6000-core.c
256 section.c
257 som.c
258 som.h
259 sparclynx.c
260 sparcnetbsd.c
261 srec.c
262 stabs.c
263 stab-syms.c
264 sunos.c
265 syms.c
266 sysdep.h
267 targets.c
268 tekhex.c
269 trad-core.c
270 versados.c
271 xcofflink.c
272
273 Things-to-lose:
274
275
276 Do-last:
277
278 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"
279 if ( echo $* | grep keep\-arc > /dev/null ) ; then
280 for i in $arc_files ; do
281 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
282 if [ -n "${verbose}" ] ; then
283 echo Keeping arc stuff in $i
284 fi
285 fi
286 done
287 else
288 for i in $arc_files ; do
289 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
290 if [ -n "${verbose}" ] ; then
291 echo Removing traces of \"arc\" from $i...
292 fi
293 cp $i new
294 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
295 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
296 if [ -n "${verbose}" ] ; then
297 echo Caching $i in .Recover...
298 fi
299 mv $i .Recover
300 fi
301 mv new $i
302 fi
303 done
304 fi
305
306 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"
307 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
308 for i in $d10v_files ; do
309 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
310 if [ -n "${verbose}" ] ; then
311 echo Keeping d10v stuff in $i
312 fi
313 fi
314 done
315 else
316 for i in $d10v_files ; do
317 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
318 if [ -n "${verbose}" ] ; then
319 echo Removing traces of \"d10v\" from $i...
320 fi
321 cp $i new
322 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
323 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
324 if [ -n "${verbose}" ] ; then
325 echo Caching $i in .Recover...
326 fi
327 mv $i .Recover
328 fi
329 mv new $i
330 fi
331 done
332 fi
333
334 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"
335 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
336 for i in $v850_files ; do
337 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
338 if [ -n "${verbose}" ] ; then
339 echo Keeping v850 stuff in $i
340 fi
341 fi
342 done
343 else
344 for i in $v850_files ; do
345 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
346 if [ -n "${verbose}" ] ; then
347 echo Removing traces of \"v850\" from $i...
348 fi
349 cp $i new
350 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
351 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
352 if [ -n "${verbose}" ] ; then
353 echo Caching $i in .Recover...
354 fi
355 mv $i .Recover
356 fi
357 mv new $i
358 fi
359 done
360 fi
361
362 gm_files="ChangeLog ChangeLog.2 config.bfd"
363 if ( echo $* | grep keep\-gm > /dev/null ) ; then
364 for i in $gm_files ; do
365 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
366 if [ -n "${verbose}" ] ; then
367 echo Keeping gm stuff in $i
368 fi
369 fi
370 done
371 else
372 for i in $gm_files ; do
373 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
374 if [ -n "${verbose}" ] ; then
375 echo Removing traces of \"gm\" from $i...
376 fi
377 cp $i new
378 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
379 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
380 if [ -n "${verbose}" ] ; then
381 echo Caching $i in .Recover...
382 fi
383 mv $i .Recover
384 fi
385 mv new $i
386 fi
387 done
388 fi
389
390 for i in * ; do
391 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
392 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
393 fi
394 done
395
396 # End of file.
This page took 0.048392 seconds and 5 git commands to generate.