]>
Commit | Line | Data |
---|---|---|
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 | |
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 | ||
a92c5906 | 24 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
e4c7516b SS |
25 | keep_these_too="mpw-make.in mpw-config.in ChangeLog.mpw ${keep_these_too}" |
26 | else | |
27 | lose_these_too="mpw-make.in mpw-config.in ChangeLog.mpw ${lose_these_too}" | |
28 | fi | |
29 | ||
30 | if ( echo $* | grep keep\-gm > /dev/null ) ; then | |
8b0f1c20 | 31 | keep_these_too="ChangeLog.gm ${keep_these_too}" |
e4c7516b | 32 | else |
8b0f1c20 | 33 | lose_these_too="ChangeLog.gm ${lose_these_too}" |
a92c5906 SS |
34 | fi |
35 | ||
99ec1f66 | 36 | if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then |
45ccfd58 | 37 | keep_these_too="nlm32-ppc.c ${keep_these_too}" |
99ec1f66 | 38 | else |
45ccfd58 | 39 | lose_these_too="nlm32-ppc.c ${lose_these_too}" |
99ec1f66 ILT |
40 | fi |
41 | ||
08942d11 RP |
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: | |
87756e15 | 49 | |
08942d11 RP |
50 | COPYING |
51 | ChangeLog | |
ceeca31c | 52 | ChangeLog.1 |
08942d11 | 53 | Makefile.in |
c3e964b9 | 54 | PORTING |
08942d11 | 55 | TODO |
8c1891af | 56 | VERSION |
60ac749c | 57 | aix386-core.c |
c3e964b9 FF |
58 | aout-adobe.c |
59 | aout-encap.c | |
60 | aout-target.h | |
08942d11 RP |
61 | aout32.c |
62 | aout64.c | |
63 | aoutf1.h | |
08942d11 RP |
64 | aoutx.h |
65 | archive.c | |
66 | archures.c | |
901c5bfd | 67 | bfd-in.h |
b9653d81 | 68 | bfd-in2.h |
08942d11 | 69 | bfd.c |
08942d11 RP |
70 | bout.c |
71 | cache.c | |
e3b5bfa8 SS |
72 | cf-i386lynx.c |
73 | cf-m68klynx.c | |
74 | cf-sparclynx.c | |
156e3852 | 75 | coff-a29k.c |
c3e964b9 | 76 | coff-alpha.c |
97eb2f0c | 77 | coff-apollo.c |
71e34032 | 78 | coff-h8300.c |
ff975a2c | 79 | coff-h8500.c |
156e3852 JG |
80 | coff-i386.c |
81 | coff-i960.c | |
c3e964b9 | 82 | coff-m68k.c |
156e3852 JG |
83 | coff-m88k.c |
84 | coff-mips.c | |
85 | coff-rs6000.c | |
9faacb92 | 86 | coff-sh.c |
e3b5bfa8 | 87 | coff-sparc.c |
df61743d | 88 | coff-u68k.c |
c7551f76 | 89 | coff-we32k.c |
d41ab714 | 90 | coff-z8k.c |
08942d11 | 91 | coffcode.h |
075caafd ILT |
92 | coffgen.c |
93 | coffswap.h | |
fb1c4481 | 94 | config |
14616002 | 95 | config.bfd |
13b351cc | 96 | configure.bat |
5a5fa368 | 97 | configure.host |
c3e964b9 | 98 | configure.in |
6f715d66 | 99 | core.c |
c3e964b9 FF |
100 | cpu-a29k.c |
101 | cpu-alpha.c | |
102 | cpu-h8300.c | |
103 | cpu-h8500.c | |
104 | cpu-hppa.c | |
105 | cpu-i386.c | |
106 | cpu-i960.c | |
107 | cpu-m68k.c | |
108 | cpu-m88k.c | |
109 | cpu-mips.c | |
384c1791 | 110 | cpu-powerpc.c |
c3e964b9 FF |
111 | cpu-rs6000.c |
112 | cpu-sh.c | |
113 | cpu-sparc.c | |
114 | cpu-vax.c | |
115 | cpu-we32k.c | |
116 | cpu-z8k.c | |
117 | ctor.c | |
08942d11 | 118 | demo64.c |
97eb2f0c | 119 | dep-in.sed |
c3e964b9 | 120 | doc |
dae31cf5 | 121 | ecoff.c |
71efdf83 | 122 | ecofflink.c |
dae31cf5 | 123 | ecoffswap.h |
cef91d75 | 124 | elf.c |
d39d83c1 | 125 | elf32-gen.c |
c268b400 KR |
126 | elf32-hppa.c |
127 | elf32-hppa.h | |
4743848f KR |
128 | elf32-i386.c |
129 | elf32-i860.c | |
130 | elf32-m68k.c | |
2c4f2c72 JK |
131 | elf32-m88k.c |
132 | elf32-mips.c | |
45ccfd58 | 133 | elf32-ppc.c |
8d936d1f | 134 | elf32-sparc.c |
4743848f KR |
135 | elf32-target.h |
136 | elf32.c | |
d39d83c1 | 137 | elf64-gen.c |
b864c03c | 138 | elf64-target.h |
4bf86ecb | 139 | elf64.c |
ef7e172e | 140 | elfcode.h |
08942d11 | 141 | filemode.c |
6f715d66 | 142 | format.c |
608de555 | 143 | gen-aout.c |
da6b2d99 ILT |
144 | genlink.h |
145 | hash.c | |
08942d11 | 146 | host-aout.c |
90c7c720 | 147 | hosts |
c3e964b9 | 148 | hp300bsd.c |
c268b400 | 149 | hp300hpux.c |
cef91d75 | 150 | hppa_stubs.h |
8a71bf96 | 151 | hppabsd-core.c |
3f933620 | 152 | hpux-core.c |
b7de6963 | 153 | i386aout.c |
256b39e0 | 154 | i386bsd.c |
afff60cd | 155 | i386linux.c |
aef0bd99 | 156 | i386lynx.c |
890eafc0 | 157 | i386mach3.c |
f8ffa548 | 158 | i386os9k.c |
08942d11 | 159 | ieee.c |
c3e964b9 | 160 | init.c |
7ce1a446 | 161 | irix-core.c |
141c97ea | 162 | libaout.h |
901c5bfd | 163 | libbfd-in.h |
08942d11 RP |
164 | libbfd.c |
165 | libbfd.h | |
901c5bfd | 166 | libcoff-in.h |
08942d11 | 167 | libcoff.h |
a3b3dbdd | 168 | libecoff.h |
c3e964b9 | 169 | libelf.h |
76b731f9 | 170 | libhppa.h |
08942d11 | 171 | libieee.h |
c3e964b9 | 172 | libnlm.h |
08942d11 | 173 | liboasys.h |
da6b2d99 | 174 | linker.c |
3151f12f | 175 | lynx-core.c |
eefe075d | 176 | m68klynx.c |
044c1ba9 | 177 | mipsbsd.c |
08942d11 | 178 | newsos3.c |
fbd5481a | 179 | netbsd386.c |
d1f83f44 | 180 | nlm-target.h |
c3e964b9 | 181 | nlm.c |
1bbabdad | 182 | nlm32-alpha.c |
8fa7a236 | 183 | nlm32-i386.c |
38f422db | 184 | nlm32-sparc.c |
c3e964b9 | 185 | nlm32.c |
c3e964b9 FF |
186 | nlm64.c |
187 | nlmcode.h | |
38f422db | 188 | nlmswap.h |
08942d11 RP |
189 | oasys.c |
190 | opncls.c | |
4346ee0f | 191 | osf-core.c |
c236d8b3 | 192 | ptrace-core.c |
6f715d66 | 193 | reloc.c |
075caafd | 194 | reloc16.c |
cf15d9e9 | 195 | rs6000-core.c |
6f715d66 | 196 | section.c |
66eca5ee JK |
197 | som.c |
198 | som.h | |
e3b5bfa8 | 199 | sparclynx.c |
08942d11 | 200 | srec.c |
7de245d3 | 201 | stab-syms.c |
08942d11 | 202 | sunos.c |
6f715d66 | 203 | syms.c |
08942d11 | 204 | targets.c |
a14b2941 | 205 | tekhex.c |
08942d11 | 206 | trad-core.c |
08942d11 | 207 | |
87756e15 RP |
208 | Things-to-lose: |
209 | ||
775d4a40 | 210 | |
08942d11 RP |
211 | Do-last: |
212 | ||
3d7de4c2 | 213 | v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c config.bfd" |
b9653d81 | 214 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
b864c03c KR |
215 | if [ -n "${verbose}" ] ; then |
216 | echo Keeping v9 stuff in $v9files. | |
217 | fi | |
b9653d81 | 218 | else |
b864c03c | 219 | if [ -n "${verbose}" ]; then |
1bea1b6f | 220 | echo -n Cleaning v9 in `pwd`: |
b864c03c KR |
221 | fi |
222 | for f in $v9files ; do | |
223 | if [ -n "${verbose}" ] ; then | |
224 | echo -n " " $f | |
225 | fi | |
1bea1b6f | 226 | sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new |
b864c03c | 227 | if [ -n "${safe}" ] ; then |
1bea1b6f | 228 | mv $f .Recover |
b864c03c KR |
229 | fi |
230 | mv new $f | |
231 | done | |
3ba17f70 | 232 | chmod a+x config.bfd |
b9653d81 KR |
233 | fi |
234 | ||
3ba17f70 | 235 | |
fbe3316a SS |
236 | mpwfiles="coffswap.h" |
237 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then | |
238 | if [ -n "${verbose}" ] ; then | |
239 | echo Keeping mpw stuff in $mpwfiles. | |
240 | fi | |
241 | else | |
242 | if [ -n "${verbose}" ]; then | |
243 | echo -n Cleaning mpw in `pwd`: | |
244 | fi | |
245 | for f in $mpwfiles ; do | |
246 | if [ -n "${verbose}" ] ; then | |
247 | echo -n " " $f | |
248 | fi | |
249 | sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new | |
250 | if [ -n "${safe}" ] ; then | |
251 | mv $f .Recover | |
252 | fi | |
253 | mv new $f | |
254 | done | |
255 | chmod a+x config.bfd | |
256 | fi | |
257 | ||
258 | ||
99ec1f66 ILT |
259 | ppcfiles="ChangeLog Makefile.in configure.in config.bfd targets.c" |
260 | if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then | |
261 | if [ -n "${verbose}" ] ; then | |
262 | echo Keeping PowerPC NetWare stuff in $ppcfiles. | |
263 | fi | |
264 | else | |
265 | if [ -n "${verbose}" ]; then | |
266 | echo -n Removing PowerPC NetWare in `pwd`: | |
267 | fi | |
268 | for f in $ppcfiles ; do | |
269 | if [ -n "${verbose}" ] ; then | |
270 | echo -n " " $f | |
271 | fi | |
272 | sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new | |
273 | if [ -n "${safe}" ] ; then | |
274 | mv $f .Recover | |
275 | fi | |
276 | mv new $f | |
277 | done | |
278 | chmod a+x config.bfd | |
279 | fi | |
280 | ||
281 | ||
08942d11 | 282 | # End of file. |