Commit | Line | Data |
---|---|---|
a92c5906 | 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 | |
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 | ||
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 | |
31 | keep_these_too="mpw-xconfig.in ChangeLog.gm ${keep_these_too}" | |
32 | else | |
33 | lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}" | |
a92c5906 SS |
34 | fi |
35 | ||
99ec1f66 ILT |
36 | if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then |
37 | keep_these_too="nlm32-powerpc.c ${keep_these_too}" | |
38 | else | |
39 | lose_these_too="nlm32-powerpc.c ${lose_these_too}" | |
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 | |
99ec1f66 | 133 | elf32-powerpc.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 |
08942d11 | 158 | ieee.c |
c3e964b9 | 159 | init.c |
7ce1a446 | 160 | irix-core.c |
141c97ea | 161 | libaout.h |
901c5bfd | 162 | libbfd-in.h |
08942d11 RP |
163 | libbfd.c |
164 | libbfd.h | |
901c5bfd | 165 | libcoff-in.h |
08942d11 | 166 | libcoff.h |
a3b3dbdd | 167 | libecoff.h |
c3e964b9 | 168 | libelf.h |
76b731f9 | 169 | libhppa.h |
08942d11 | 170 | libieee.h |
c3e964b9 | 171 | libnlm.h |
08942d11 | 172 | liboasys.h |
da6b2d99 | 173 | linker.c |
3151f12f | 174 | lynx-core.c |
eefe075d | 175 | m68klynx.c |
044c1ba9 | 176 | mipsbsd.c |
08942d11 | 177 | newsos3.c |
fbd5481a | 178 | netbsd386.c |
d1f83f44 | 179 | nlm-target.h |
c3e964b9 | 180 | nlm.c |
1bbabdad | 181 | nlm32-alpha.c |
8fa7a236 | 182 | nlm32-i386.c |
38f422db | 183 | nlm32-sparc.c |
c3e964b9 | 184 | nlm32.c |
c3e964b9 FF |
185 | nlm64.c |
186 | nlmcode.h | |
38f422db | 187 | nlmswap.h |
08942d11 RP |
188 | oasys.c |
189 | opncls.c | |
4346ee0f | 190 | osf-core.c |
c236d8b3 | 191 | ptrace-core.c |
6f715d66 | 192 | reloc.c |
075caafd | 193 | reloc16.c |
cf15d9e9 | 194 | rs6000-core.c |
6f715d66 | 195 | section.c |
66eca5ee JK |
196 | som.c |
197 | som.h | |
e3b5bfa8 | 198 | sparclynx.c |
08942d11 | 199 | srec.c |
7de245d3 | 200 | stab-syms.c |
08942d11 | 201 | sunos.c |
6f715d66 | 202 | syms.c |
08942d11 | 203 | targets.c |
a14b2941 | 204 | tekhex.c |
08942d11 | 205 | trad-core.c |
08942d11 | 206 | |
87756e15 RP |
207 | Things-to-lose: |
208 | ||
775d4a40 | 209 | |
08942d11 RP |
210 | Do-last: |
211 | ||
3d7de4c2 | 212 | v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c config.bfd" |
b9653d81 | 213 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
b864c03c KR |
214 | if [ -n "${verbose}" ] ; then |
215 | echo Keeping v9 stuff in $v9files. | |
216 | fi | |
b9653d81 | 217 | else |
b864c03c | 218 | if [ -n "${verbose}" ]; then |
1bea1b6f | 219 | echo -n Cleaning v9 in `pwd`: |
b864c03c KR |
220 | fi |
221 | for f in $v9files ; do | |
222 | if [ -n "${verbose}" ] ; then | |
223 | echo -n " " $f | |
224 | fi | |
1bea1b6f | 225 | sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new |
b864c03c | 226 | if [ -n "${safe}" ] ; then |
1bea1b6f | 227 | mv $f .Recover |
b864c03c KR |
228 | fi |
229 | mv new $f | |
230 | done | |
3ba17f70 | 231 | chmod a+x config.bfd |
b9653d81 KR |
232 | fi |
233 | ||
3ba17f70 | 234 | |
fbe3316a SS |
235 | mpwfiles="coffswap.h" |
236 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then | |
237 | if [ -n "${verbose}" ] ; then | |
238 | echo Keeping mpw stuff in $mpwfiles. | |
239 | fi | |
240 | else | |
241 | if [ -n "${verbose}" ]; then | |
242 | echo -n Cleaning mpw in `pwd`: | |
243 | fi | |
244 | for f in $mpwfiles ; do | |
245 | if [ -n "${verbose}" ] ; then | |
246 | echo -n " " $f | |
247 | fi | |
248 | sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new | |
249 | if [ -n "${safe}" ] ; then | |
250 | mv $f .Recover | |
251 | fi | |
252 | mv new $f | |
253 | done | |
254 | chmod a+x config.bfd | |
255 | fi | |
256 | ||
257 | ||
99ec1f66 ILT |
258 | ppcfiles="ChangeLog Makefile.in configure.in config.bfd targets.c" |
259 | if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then | |
260 | if [ -n "${verbose}" ] ; then | |
261 | echo Keeping PowerPC NetWare stuff in $ppcfiles. | |
262 | fi | |
263 | else | |
264 | if [ -n "${verbose}" ]; then | |
265 | echo -n Removing PowerPC NetWare in `pwd`: | |
266 | fi | |
267 | for f in $ppcfiles ; do | |
268 | if [ -n "${verbose}" ] ; then | |
269 | echo -n " " $f | |
270 | fi | |
271 | sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new | |
272 | if [ -n "${safe}" ] ; then | |
273 | mv $f .Recover | |
274 | fi | |
275 | mv new $f | |
276 | done | |
277 | chmod a+x config.bfd | |
278 | fi | |
279 | ||
280 | ||
08942d11 | 281 | # End of file. |