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