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