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 | ||
75c8a303 | 18 | mpw_files="mpw-config.in mpw-make.in ChangeLog.mpw" |
e4c7516b | 19 | |
75c8a303 SS |
20 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
21 | keep_these_too="${mpw_files} ${keep_these_too}" | |
e4c7516b | 22 | else |
75c8a303 | 23 | lose_these_too="${mpw_files} ${lose_these_too}" |
a92c5906 SS |
24 | fi |
25 | ||
08942d11 RP |
26 | # All files listed between the "Things-to-keep:" line and the |
27 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
28 | # Directories listed in this section will have their own Sanitize | |
29 | # called. Directories not listed will be removed in their entirety | |
30 | # with rm -rf. | |
31 | ||
32 | Things-to-keep: | |
87756e15 | 33 | |
08942d11 RP |
34 | COPYING |
35 | ChangeLog | |
ceeca31c | 36 | ChangeLog.1 |
08942d11 | 37 | Makefile.in |
c3e964b9 | 38 | PORTING |
08942d11 | 39 | TODO |
8c1891af | 40 | VERSION |
60ac749c | 41 | aix386-core.c |
c3e964b9 FF |
42 | aout-adobe.c |
43 | aout-encap.c | |
56fbe889 | 44 | aout-ns32k.c |
c3e964b9 | 45 | aout-target.h |
77d11284 | 46 | aout0.c |
08942d11 RP |
47 | aout32.c |
48 | aout64.c | |
49 | aoutf1.h | |
08942d11 RP |
50 | aoutx.h |
51 | archive.c | |
52 | archures.c | |
901c5bfd | 53 | bfd-in.h |
b9653d81 | 54 | bfd-in2.h |
08942d11 | 55 | bfd.c |
c768bd3f | 56 | binary.c |
08942d11 RP |
57 | bout.c |
58 | cache.c | |
e3b5bfa8 SS |
59 | cf-i386lynx.c |
60 | cf-m68klynx.c | |
61 | cf-sparclynx.c | |
5d70e4d1 | 62 | cisco-core.c |
156e3852 | 63 | coff-a29k.c |
c3e964b9 | 64 | coff-alpha.c |
97eb2f0c | 65 | coff-apollo.c |
c06e55d9 | 66 | coff-go32.c |
71e34032 | 67 | coff-h8300.c |
ff975a2c | 68 | coff-h8500.c |
156e3852 JG |
69 | coff-i386.c |
70 | coff-i960.c | |
c3e964b9 | 71 | coff-m68k.c |
156e3852 JG |
72 | coff-m88k.c |
73 | coff-mips.c | |
74 | coff-rs6000.c | |
9faacb92 | 75 | coff-sh.c |
e3b5bfa8 | 76 | coff-sparc.c |
df61743d | 77 | coff-u68k.c |
c7551f76 | 78 | coff-we32k.c |
d41ab714 | 79 | coff-z8k.c |
08942d11 | 80 | coffcode.h |
075caafd | 81 | coffgen.c |
69645d10 | 82 | cofflink.c |
075caafd | 83 | coffswap.h |
fb1c4481 | 84 | config |
14616002 | 85 | config.bfd |
13b351cc | 86 | configure.bat |
5a5fa368 | 87 | configure.host |
c3e964b9 | 88 | configure.in |
6f715d66 | 89 | core.c |
c3e964b9 FF |
90 | cpu-a29k.c |
91 | cpu-alpha.c | |
6c3bc2b8 | 92 | cpu-arm.c |
c3e964b9 FF |
93 | cpu-h8300.c |
94 | cpu-h8500.c | |
95 | cpu-hppa.c | |
96 | cpu-i386.c | |
97 | cpu-i960.c | |
98 | cpu-m68k.c | |
99 | cpu-m88k.c | |
100 | cpu-mips.c | |
e26e4fbc | 101 | cpu-ns32k.c |
384c1791 | 102 | cpu-powerpc.c |
c3e964b9 FF |
103 | cpu-rs6000.c |
104 | cpu-sh.c | |
105 | cpu-sparc.c | |
106 | cpu-vax.c | |
107 | cpu-we32k.c | |
108 | cpu-z8k.c | |
08942d11 | 109 | demo64.c |
97eb2f0c | 110 | dep-in.sed |
c3e964b9 | 111 | doc |
dae31cf5 | 112 | ecoff.c |
71efdf83 | 113 | ecofflink.c |
dae31cf5 | 114 | ecoffswap.h |
cef91d75 | 115 | elf.c |
d39d83c1 | 116 | elf32-gen.c |
c268b400 KR |
117 | elf32-hppa.c |
118 | elf32-hppa.h | |
4743848f KR |
119 | elf32-i386.c |
120 | elf32-i860.c | |
121 | elf32-m68k.c | |
2c4f2c72 JK |
122 | elf32-m88k.c |
123 | elf32-mips.c | |
45ccfd58 | 124 | elf32-ppc.c |
8d936d1f | 125 | elf32-sparc.c |
4743848f KR |
126 | elf32-target.h |
127 | elf32.c | |
d39d83c1 | 128 | elf64-gen.c |
66599384 | 129 | elf64-sparc.c |
b864c03c | 130 | elf64-target.h |
4bf86ecb | 131 | elf64.c |
ef7e172e | 132 | elfcode.h |
08942d11 | 133 | filemode.c |
6f715d66 | 134 | format.c |
608de555 | 135 | gen-aout.c |
da6b2d99 ILT |
136 | genlink.h |
137 | hash.c | |
08942d11 | 138 | host-aout.c |
90c7c720 | 139 | hosts |
c3e964b9 | 140 | hp300bsd.c |
c268b400 | 141 | hp300hpux.c |
cef91d75 | 142 | hppa_stubs.h |
8a71bf96 | 143 | hppabsd-core.c |
3f933620 | 144 | hpux-core.c |
b7de6963 | 145 | i386aout.c |
256b39e0 | 146 | i386bsd.c |
bdf1b511 | 147 | i386dynix.c |
afff60cd | 148 | i386linux.c |
a3f7a777 | 149 | i386netbsd.c |
aef0bd99 | 150 | i386lynx.c |
890eafc0 | 151 | i386mach3.c |
f8ffa548 | 152 | i386os9k.c |
08942d11 | 153 | ieee.c |
c3e964b9 | 154 | init.c |
7ce1a446 | 155 | irix-core.c |
141c97ea | 156 | libaout.h |
901c5bfd | 157 | libbfd-in.h |
08942d11 RP |
158 | libbfd.c |
159 | libbfd.h | |
901c5bfd | 160 | libcoff-in.h |
08942d11 | 161 | libcoff.h |
a3b3dbdd | 162 | libecoff.h |
c3e964b9 | 163 | libelf.h |
76b731f9 | 164 | libhppa.h |
08942d11 | 165 | libieee.h |
c3e964b9 | 166 | libnlm.h |
08942d11 | 167 | liboasys.h |
da6b2d99 | 168 | linker.c |
3151f12f | 169 | lynx-core.c |
eefe075d | 170 | m68klynx.c |
ec35a1c2 | 171 | m68knetbsd.c |
56fbe889 | 172 | m88kmach3.c |
346a6d59 | 173 | makefile.dos |
044c1ba9 | 174 | mipsbsd.c |
08942d11 | 175 | newsos3.c |
a3f7a777 | 176 | netbsd.h |
d1f83f44 | 177 | nlm-target.h |
c3e964b9 | 178 | nlm.c |
1bbabdad | 179 | nlm32-alpha.c |
8fa7a236 | 180 | nlm32-i386.c |
7ce8b9d1 | 181 | nlm32-ppc.c |
38f422db | 182 | nlm32-sparc.c |
c3e964b9 | 183 | nlm32.c |
c3e964b9 FF |
184 | nlm64.c |
185 | nlmcode.h | |
38f422db | 186 | nlmswap.h |
a3f7a777 | 187 | ns32knetbsd.c |
08942d11 RP |
188 | oasys.c |
189 | opncls.c | |
4346ee0f | 190 | osf-core.c |
56fbe889 | 191 | pc532-mach.c |
c236d8b3 | 192 | ptrace-core.c |
6f715d66 | 193 | reloc.c |
075caafd | 194 | reloc16.c |
6c3bc2b8 | 195 | riscix.c |
cf15d9e9 | 196 | rs6000-core.c |
6f715d66 | 197 | section.c |
66eca5ee JK |
198 | som.c |
199 | som.h | |
e3b5bfa8 | 200 | sparclynx.c |
a3f7a777 | 201 | sparcnetbsd.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 | ||
fbe3316a SS |
215 | mpwfiles="coffswap.h" |
216 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then | |
217 | if [ -n "${verbose}" ] ; then | |
218 | echo Keeping mpw stuff in $mpwfiles. | |
219 | fi | |
220 | else | |
221 | if [ -n "${verbose}" ]; then | |
222 | echo -n Cleaning mpw in `pwd`: | |
223 | fi | |
224 | for f in $mpwfiles ; do | |
225 | if [ -n "${verbose}" ] ; then | |
226 | echo -n " " $f | |
227 | fi | |
228 | sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new | |
229 | if [ -n "${safe}" ] ; then | |
230 | mv $f .Recover | |
231 | fi | |
232 | mv new $f | |
233 | done | |
234 | chmod a+x config.bfd | |
235 | fi | |
236 | ||
e26e4fbc KR |
237 | i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h" |
238 | if ( echo $* | grep keep\-i960xl > /dev/null ) ; then | |
239 | if [ -n "${verbose}" ] ; then | |
240 | echo Keeping i960xl stuff in $i960xl_files. | |
241 | fi | |
242 | else | |
243 | if [ -n "${verbose}" ]; then | |
244 | echo -n Cleaning i960xl in `pwd`: | |
245 | fi | |
246 | for f in $i960xl_files ; do | |
247 | if [ -n "${verbose}" ] ; then | |
248 | echo -n " " $f | |
249 | fi | |
250 | sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new | |
251 | if [ -n "${safe}" ] ; then | |
252 | mv $f .Recover | |
253 | fi | |
254 | mv new $f | |
255 | done | |
256 | fi | |
257 | ||
08942d11 | 258 | # End of file. |