Removed v850 sanitization.
[deliverable/binutils-gdb.git] / bfd / .Sanitize
CommitLineData
8b0f1c20 1# .Sanitize for devo/bfd.
08942d11 2
a92c5906 3# Each directory to survive its way into a release will need a file
08942d11
RP
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
8b0f1c20 14# done in this directory.
08942d11
RP
15
16Do-first:
17
fd8d7c31
MH
18d30v_files="cpu-d30v.c elf32-d30v.c"
19
20if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21 keep_these_too="${d30v_files} ${keep_these_too}"
22else
23 lose_these_too="${d30v_files} ${lose_these_too}"
24fi
25
2a0a42d3
FF
26tic80_files="cpu-tic80.c coff-tic80.c"
27
28if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
29 keep_these_too="${tic80_files} ${keep_these_too}"
30else
31 lose_these_too="${tic80_files} ${lose_these_too}"
32fi
33
08942d11
RP
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
40Things-to-keep:
87756e15 41
08942d11
RP
42COPYING
43ChangeLog
ceeca31c 44ChangeLog.1
1613e075 45ChangeLog.2
c0734708 46Makefile.am
08942d11 47Makefile.in
c3e964b9 48PORTING
b8760145 49README
08942d11 50TODO
b7577823 51acconfig.h
c0734708 52acinclude.m4
f515fb2f 53aclocal.m4
60ac749c 54aix386-core.c
c3e964b9 55aout-adobe.c
ff15324f 56aout-arm.c
c3e964b9 57aout-encap.c
56fbe889 58aout-ns32k.c
0cd98b92 59aout-sparcle.c
c3e964b9 60aout-target.h
77d11284 61aout0.c
08942d11
RP
62aout32.c
63aout64.c
64aoutf1.h
08942d11
RP
65aoutx.h
66archive.c
67archures.c
901c5bfd 68bfd-in.h
b9653d81 69bfd-in2.h
08942d11 70bfd.c
c768bd3f 71binary.c
08942d11
RP
72bout.c
73cache.c
e3b5bfa8
SS
74cf-i386lynx.c
75cf-m68klynx.c
76cf-sparclynx.c
5d70e4d1 77cisco-core.c
156e3852 78coff-a29k.c
c3e964b9 79coff-alpha.c
97eb2f0c 80coff-apollo.c
d19df9b5
ILT
81coff-arm.c
82coff-aux.c
c06e55d9 83coff-go32.c
71e34032 84coff-h8300.c
ff975a2c 85coff-h8500.c
156e3852 86coff-i386.c
cf587de8 87coff-i860.c
156e3852 88coff-i960.c
c3e964b9 89coff-m68k.c
156e3852
JG
90coff-m88k.c
91coff-mips.c
63c67f3c 92coff-pmac.c
8d2a09b0 93coff-ppc.c
156e3852 94coff-rs6000.c
9faacb92 95coff-sh.c
e3b5bfa8 96coff-sparc.c
2af5a7e4 97coff-stgo32.c
ac388f2a 98coff-svm68k.c
df61743d 99coff-u68k.c
c7551f76 100coff-we32k.c
d468a149 101coff-w65.c
d41ab714 102coff-z8k.c
08942d11 103coffcode.h
075caafd 104coffgen.c
69645d10 105cofflink.c
075caafd 106coffswap.h
14616002 107config.bfd
936b870c 108config.in
7c1a9ec3 109configure
13b351cc 110configure.bat
0f854557 111configure.com
5a5fa368 112configure.host
c3e964b9 113configure.in
d9e771e3 114corefile.c
c3e964b9
FF
115cpu-a29k.c
116cpu-alpha.c
76af94b9 117cpu-arc.c
6c3bc2b8 118cpu-arm.c
a3c5b9a4 119cpu-d10v.c
c3e964b9
FF
120cpu-h8300.c
121cpu-h8500.c
122cpu-hppa.c
123cpu-i386.c
cf587de8 124cpu-i860.c
c3e964b9 125cpu-i960.c
37bdd624 126cpu-m32r.c
c3e964b9
FF
127cpu-m68k.c
128cpu-m88k.c
129cpu-mips.c
7a68d1f7
ILT
130cpu-m10200.c
131cpu-m10300.c
e26e4fbc 132cpu-ns32k.c
384c1791 133cpu-powerpc.c
c3e964b9
FF
134cpu-rs6000.c
135cpu-sh.c
136cpu-sparc.c
137cpu-vax.c
138cpu-we32k.c
d468a149 139cpu-w65.c
2cf9a0d0 140cpu-v850.c
c3e964b9 141cpu-z8k.c
08942d11 142demo64.c
97eb2f0c 143dep-in.sed
c3e964b9 144doc
dae31cf5 145ecoff.c
71efdf83 146ecofflink.c
dae31cf5 147ecoffswap.h
6ab826bd 148elf-bfd.h
cef91d75 149elf.c
76af94b9 150elf32-arc.c
a3c5b9a4 151elf32-d10v.c
d39d83c1 152elf32-gen.c
c268b400
KR
153elf32-hppa.c
154elf32-hppa.h
4743848f
KR
155elf32-i386.c
156elf32-i860.c
37bdd624 157elf32-m32r.c
4743848f 158elf32-m68k.c
2c4f2c72
JK
159elf32-m88k.c
160elf32-mips.c
2cf9a0d0 161elf32-v850.c
7a68d1f7
ILT
162elf-m10200.c
163elf-m10300.c
45ccfd58 164elf32-ppc.c
c86158e5 165elf32-sh.c
8d936d1f 166elf32-sparc.c
4743848f 167elf32.c
e8f46717 168elf64-alpha.c
d39d83c1 169elf64-gen.c
d1bf45aa 170elf64-mips.c
66599384 171elf64-sparc.c
4bf86ecb 172elf64.c
4b18dd1e 173elfxx-target.h
ef7e172e 174elfcode.h
ede4eed4
KR
175elfcore.h
176elflink.c
177elflink.h
c3d8e071
ILT
178evax.h
179evax-alpha.c
180evax-egsd.c
181evax-emh.c
182evax-etir.c
183evax-misc.c
08942d11 184filemode.c
6f715d66 185format.c
767f22d5 186freebsd.h
608de555 187gen-aout.c
da6b2d99 188genlink.h
179ce6e1 189go32stub.h
da6b2d99 190hash.c
08942d11 191host-aout.c
90c7c720 192hosts
c3e964b9 193hp300bsd.c
c268b400 194hp300hpux.c
cef91d75 195hppa_stubs.h
8a71bf96 196hppabsd-core.c
3f933620 197hpux-core.c
b7de6963 198i386aout.c
256b39e0 199i386bsd.c
bdf1b511 200i386dynix.c
767f22d5 201i386freebsd.c
afff60cd 202i386linux.c
a3f7a777 203i386netbsd.c
aef0bd99 204i386lynx.c
890eafc0 205i386mach3.c
7c2c70f3 206i386msdos.c
f8ffa548 207i386os9k.c
08942d11 208ieee.c
ffd15489 209ihex.c
c3e964b9 210init.c
7ce1a446 211irix-core.c
141c97ea 212libaout.h
901c5bfd 213libbfd-in.h
08942d11
RP
214libbfd.c
215libbfd.h
901c5bfd 216libcoff-in.h
08942d11 217libcoff.h
a3b3dbdd 218libecoff.h
76b731f9 219libhppa.h
08942d11 220libieee.h
c3e964b9 221libnlm.h
08942d11 222liboasys.h
da6b2d99 223linker.c
3151f12f 224lynx-core.c
e295a90d 225m68k4knetbsd.c
55626bf0 226m68klinux.c
eefe075d 227m68klynx.c
ec35a1c2 228m68knetbsd.c
56fbe889 229m88kmach3.c
346a6d59 230makefile.dos
c3d8e071 231makefile.vms
044c1ba9 232mipsbsd.c
241d8883 233mpw-config.in
63c67f3c 234mpw-make.sed
08942d11 235newsos3.c
fe16107d 236netbsd-core.c
a3f7a777 237netbsd.h
d1f83f44 238nlm-target.h
c3e964b9 239nlm.c
1bbabdad 240nlm32-alpha.c
8fa7a236 241nlm32-i386.c
7ce8b9d1 242nlm32-ppc.c
38f422db 243nlm32-sparc.c
c3e964b9 244nlm32.c
c3e964b9
FF
245nlm64.c
246nlmcode.h
38f422db 247nlmswap.h
c877bdf1 248ns32k.h
a3f7a777 249ns32knetbsd.c
08942d11
RP
250oasys.c
251opncls.c
4346ee0f 252osf-core.c
56fbe889 253pc532-mach.c
a3444c49 254pe-arm.c
b297038d 255pe-i386.c
8d2a09b0 256pe-ppc.c
4e98461f 257pei-arm.c
b297038d 258pei-i386.c
8d2a09b0 259pei-ppc.c
4e98461f 260peicode.h
0d1fcbbb 261ppcboot.c
c236d8b3 262ptrace-core.c
6f715d66 263reloc.c
075caafd 264reloc16.c
6c3bc2b8 265riscix.c
cf15d9e9 266rs6000-core.c
6f715d66 267section.c
66eca5ee
JK
268som.c
269som.h
5f792743 270sparclinux.c
e3b5bfa8 271sparclynx.c
a3f7a777 272sparcnetbsd.c
08942d11 273srec.c
1726b8f0 274stabs.c
7de245d3 275stab-syms.c
c0734708 276stamp-h.in
08942d11 277sunos.c
6f715d66 278syms.c
b7577823 279sysdep.h
08942d11 280targets.c
dee99794 281targmatch.sed
a14b2941 282tekhex.c
08942d11 283trad-core.c
c3c112fc 284versados.c
dd984644 285xcofflink.c
08942d11 286
87756e15
RP
287Things-to-lose:
288
775d4a40 289
08942d11
RP
290Do-last:
291
a3d2e13b 292d30v_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"
fd8d7c31
MH
293if ( echo $* | grep keep\-d30v > /dev/null ) ; then
294 for i in $d30v_files ; do
295 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
296 if [ -n "${verbose}" ] ; then
297 echo Keeping d30v stuff in $i
298 fi
299 fi
300 done
301else
302 for i in $d30v_files ; do
303 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
304 if [ -n "${verbose}" ] ; then
305 echo Removing traces of \"d30v\" from $i...
306 fi
307 cp $i new
308 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
309 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
0c1d95c7
C
310 if [ -n "${verbose}" ] ; then
311 echo Caching $i in .Recover...
312 fi
313 mv $i .Recover
314 fi
315 mv new $i
316 fi
317 done
318fi
319
2cf9a0d0 320v850_files="ChangeLog Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h elf32-v850.c cpu-v850.c"
8988d935 321if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
0c1d95c7 322 for i in $v850_files ; do
8988d935 323 if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
0c1d95c7 324 if [ -n "${verbose}" ] ; then
8988d935 325 echo Keeping v850eq stuff in $i
0c1d95c7
C
326 fi
327 fi
328 done
329else
8988d935
NC
330 for i in $v850_files ; do
331 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
0c1d95c7 332 if [ -n "${verbose}" ] ; then
8988d935 333 echo Removing traces of \"v850eq\" from $i...
0c1d95c7
C
334 fi
335 cp $i new
8988d935 336 sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new
0c1d95c7 337 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
2a0a42d3
FF
338 if [ -n "${verbose}" ] ; then
339 echo Caching $i in .Recover...
340 fi
341 mv $i .Recover
342 fi
343 mv new $i
344 fi
345 done
def47b53 346fi
def47b53
NC
347if ( echo $* | grep keep\-v850e > /dev/null ) ; then
348 for i in $v850_files ; do
349 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
350 if [ -n "${verbose}" ] ; then
351 echo Keeping v850e stuff in $i
352 fi
353 fi
354 done
355else
356 for i in $v850_files ; do
357 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
358 if [ -n "${verbose}" ] ; then
359 echo Removing traces of \"v850e\" from $i...
360 fi
361 cp $i new
8988d935 362 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
def47b53
NC
363 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
364 if [ -n "${verbose}" ] ; then
365 echo Caching $i in .Recover...
366 fi
367 mv $i .Recover
368 fi
369 mv new $i
370 fi
371 done
372fi
8988d935 373
276c2d7d
GRK
374r5900_files="ChangeLog config.bfd"
375if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
376 for i in $r5900_files ; do
377 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
378 if [ -n "${verbose}" ] ; then
379 echo Keeping r5900 stuff in $i
380 fi
381 fi
382 done
383else
384 for i in $r5900_files ; do
385 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
386 if [ -n "${verbose}" ] ; then
387 echo Removing traces of \"r5900\" from $i...
388 fi
389 cp $i new
390 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
391 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
392 if [ -n "${verbose}" ] ; then
393 echo Caching $i in .Recover...
394 fi
395 mv $i .Recover
396 fi
397 mv new $i
398 fi
399 done
400fi
401
f40d28bf
AC
402sh4_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-sh.c"
403if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
404 for i in $sh4_files ; do
405 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
406 if [ -n "${verbose}" ] ; then
407 echo Keeping sh4 stuff in $i
408 fi
409 fi
410 done
411else
412 for i in $sh4_files ; do
413 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
414 if [ -n "${verbose}" ] ; then
415 echo Removing traces of \"sh4\" from $i...
416 fi
417 cp $i new
418 sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new
419 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
420 if [ -n "${verbose}" ] ; then
421 echo Caching $i in .Recover...
422 fi
423 mv $i .Recover
424 fi
425 mv new $i
426 fi
427 done
428fi
429
a3d2e13b 430tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
2a0a42d3
FF
431if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
432 for i in $tic80_files ; do
433 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
434 if [ -n "${verbose}" ] ; then
435 echo Keeping tic80 stuff in $i
436 fi
437 fi
438 done
439else
440 for i in $tic80_files ; do
441 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
442 if [ -n "${verbose}" ] ; then
443 echo Removing traces of \"tic80\" from $i...
444 fi
445 cp $i new
446 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
447 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
448 if [ -n "${verbose}" ] ; then
449 echo Caching $i in .Recover...
450 fi
451 mv $i .Recover
452 fi
453 mv new $i
454 fi
455 done
456fi
457
d6d44ef9
SG
458gm_files="ChangeLog ChangeLog.2 config.bfd"
459if ( echo $* | grep keep\-gm > /dev/null ) ; then
460 for i in $gm_files ; do
461 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
462 if [ -n "${verbose}" ] ; then
463 echo Keeping gm stuff in $i
464 fi
465 fi
466 done
467else
468 for i in $gm_files ; do
469 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
470 if [ -n "${verbose}" ] ; then
471 echo Removing traces of \"gm\" from $i...
472 fi
473 cp $i new
474 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
475 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
476 if [ -n "${verbose}" ] ; then
477 echo Caching $i in .Recover...
478 fi
479 mv $i .Recover
480 fi
481 mv new $i
482 fi
483 done
484fi
485
5c680afd
MT
486for i in * ; do
487 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
488 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
489 fi
490done
491
08942d11 492# End of file.
This page took 0.241374 seconds and 4 git commands to generate.