Commit | Line | Data |
---|---|---|
aee06af3 | 1 | # Sanitize.in for devo/bfd. |
08942d11 RP |
2 | |
3 | # Each directory to survive it's 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 | |
15 | ||
16 | Do-first: | |
17 | ||
1bea1b6f KR |
18 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
19 | keep_these_too="elf64-sparc.c" | |
f7df1b2b FF |
20 | else |
21 | lose_these_too="elf64-sparc.c" | |
1bea1b6f KR |
22 | fi |
23 | ||
08942d11 RP |
24 | # All files listed between the "Things-to-keep:" line and the |
25 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
26 | # Directories listed in this section will have their own Sanitize | |
27 | # called. Directories not listed will be removed in their entirety | |
28 | # with rm -rf. | |
29 | ||
30 | Things-to-keep: | |
87756e15 | 31 | |
08942d11 RP |
32 | COPYING |
33 | ChangeLog | |
34 | Makefile.in | |
c3e964b9 | 35 | PORTING |
08942d11 | 36 | TODO |
8c1891af | 37 | VERSION |
60ac749c | 38 | aix386-core.c |
c3e964b9 FF |
39 | aout-adobe.c |
40 | aout-encap.c | |
41 | aout-target.h | |
08942d11 RP |
42 | aout32.c |
43 | aout64.c | |
44 | aoutf1.h | |
08942d11 RP |
45 | aoutx.h |
46 | archive.c | |
47 | archures.c | |
901c5bfd | 48 | bfd-in.h |
b9653d81 | 49 | bfd-in2.h |
08942d11 | 50 | bfd.c |
08942d11 RP |
51 | bout.c |
52 | cache.c | |
156e3852 | 53 | coff-a29k.c |
c3e964b9 | 54 | coff-alpha.c |
97eb2f0c | 55 | coff-apollo.c |
71e34032 | 56 | coff-h8300.c |
ff975a2c | 57 | coff-h8500.c |
156e3852 JG |
58 | coff-i386.c |
59 | coff-i960.c | |
c3e964b9 | 60 | coff-m68k.c |
156e3852 JG |
61 | coff-m88k.c |
62 | coff-mips.c | |
63 | coff-rs6000.c | |
9faacb92 | 64 | coff-sh.c |
df61743d | 65 | coff-u68k.c |
c7551f76 | 66 | coff-we32k.c |
d41ab714 | 67 | coff-z8k.c |
08942d11 | 68 | coffcode.h |
075caafd ILT |
69 | coffgen.c |
70 | coffswap.h | |
fb1c4481 | 71 | config |
14616002 | 72 | config.bfd |
13b351cc | 73 | configure.bat |
5a5fa368 | 74 | configure.host |
c3e964b9 | 75 | configure.in |
6f715d66 | 76 | core.c |
c3e964b9 FF |
77 | cpu-a29k.c |
78 | cpu-alpha.c | |
79 | cpu-h8300.c | |
80 | cpu-h8500.c | |
81 | cpu-hppa.c | |
82 | cpu-i386.c | |
83 | cpu-i960.c | |
84 | cpu-m68k.c | |
85 | cpu-m88k.c | |
86 | cpu-mips.c | |
87 | cpu-rs6000.c | |
88 | cpu-sh.c | |
89 | cpu-sparc.c | |
90 | cpu-vax.c | |
91 | cpu-we32k.c | |
92 | cpu-z8k.c | |
93 | ctor.c | |
08942d11 | 94 | demo64.c |
97eb2f0c | 95 | dep-in.sed |
c3e964b9 | 96 | doc |
dae31cf5 ILT |
97 | ecoff.c |
98 | ecoffswap.h | |
cef91d75 | 99 | elf.c |
d39d83c1 | 100 | elf32-gen.c |
c268b400 KR |
101 | elf32-hppa.c |
102 | elf32-hppa.h | |
4743848f KR |
103 | elf32-i386.c |
104 | elf32-i860.c | |
105 | elf32-m68k.c | |
2c4f2c72 JK |
106 | elf32-m88k.c |
107 | elf32-mips.c | |
8d936d1f | 108 | elf32-sparc.c |
4743848f KR |
109 | elf32-target.h |
110 | elf32.c | |
d39d83c1 | 111 | elf64-gen.c |
b864c03c | 112 | elf64-target.h |
4bf86ecb | 113 | elf64.c |
ef7e172e | 114 | elfcode.h |
08942d11 | 115 | filemode.c |
6f715d66 | 116 | format.c |
608de555 | 117 | gen-aout.c |
08942d11 | 118 | host-aout.c |
90c7c720 | 119 | hosts |
c3e964b9 | 120 | hp300bsd.c |
c268b400 | 121 | hp300hpux.c |
cef91d75 | 122 | hppa_stubs.h |
3f933620 | 123 | hpux-core.c |
b7de6963 | 124 | i386aout.c |
256b39e0 | 125 | i386bsd.c |
afff60cd | 126 | i386linux.c |
47d22451 | 127 | i386lynx-cf.c |
aef0bd99 | 128 | i386lynx.c |
890eafc0 | 129 | i386mach3.c |
08942d11 | 130 | ieee.c |
c3e964b9 | 131 | init.c |
141c97ea | 132 | libaout.h |
901c5bfd | 133 | libbfd-in.h |
08942d11 RP |
134 | libbfd.c |
135 | libbfd.h | |
901c5bfd | 136 | libcoff-in.h |
08942d11 | 137 | libcoff.h |
a3b3dbdd | 138 | libecoff.h |
c3e964b9 | 139 | libelf.h |
76b731f9 | 140 | libhppa.h |
08942d11 | 141 | libieee.h |
c3e964b9 | 142 | libnlm.h |
08942d11 | 143 | liboasys.h |
3151f12f | 144 | lynx-core.c |
47d22451 | 145 | m68klynx-cf.c |
eefe075d | 146 | m68klynx.c |
044c1ba9 | 147 | mipsbsd.c |
08942d11 | 148 | newsos3.c |
fbd5481a | 149 | netbsd386.c |
d1f83f44 | 150 | nlm-target.h |
c3e964b9 FF |
151 | nlm.c |
152 | nlm32-gen.c | |
8fa7a236 | 153 | nlm32-i386.c |
c3e964b9 FF |
154 | nlm32.c |
155 | nlm64-gen.c | |
c3e964b9 FF |
156 | nlm64.c |
157 | nlmcode.h | |
08942d11 RP |
158 | oasys.c |
159 | opncls.c | |
4346ee0f | 160 | osf-core.c |
6f715d66 | 161 | reloc.c |
075caafd | 162 | reloc16.c |
cf15d9e9 | 163 | rs6000-core.c |
e98e6ec1 | 164 | seclet.c |
dc72b0b6 | 165 | seclet.h |
6f715d66 | 166 | section.c |
66eca5ee JK |
167 | som.c |
168 | som.h | |
08942d11 | 169 | srec.c |
7de245d3 | 170 | stab-syms.c |
08942d11 | 171 | sunos.c |
6f715d66 | 172 | syms.c |
08942d11 | 173 | targets.c |
a14b2941 | 174 | tekhex.c |
08942d11 | 175 | trad-core.c |
08942d11 | 176 | |
87756e15 RP |
177 | Things-to-lose: |
178 | ||
775d4a40 | 179 | |
08942d11 RP |
180 | Do-last: |
181 | ||
3d7de4c2 | 182 | v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c config.bfd" |
b9653d81 | 183 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
b864c03c KR |
184 | if [ -n "${verbose}" ] ; then |
185 | echo Keeping v9 stuff in $v9files. | |
186 | fi | |
b9653d81 | 187 | else |
b864c03c | 188 | if [ -n "${verbose}" ]; then |
1bea1b6f | 189 | echo -n Cleaning v9 in `pwd`: |
b864c03c KR |
190 | fi |
191 | for f in $v9files ; do | |
192 | if [ -n "${verbose}" ] ; then | |
193 | echo -n " " $f | |
194 | fi | |
1bea1b6f | 195 | sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new |
b864c03c | 196 | if [ -n "${safe}" ] ; then |
1bea1b6f | 197 | mv $f .Recover |
b864c03c KR |
198 | fi |
199 | mv new $f | |
200 | done | |
3ba17f70 | 201 | chmod a+x config.bfd |
b9653d81 KR |
202 | fi |
203 | ||
3ba17f70 | 204 | |
08942d11 | 205 | # End of file. |