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