Commit | Line | Data |
---|---|---|
4f5d16c7 | 1 | # .Sanitize for devo/gas/config |
0fd8d5d9 | 2 | |
4f5d16c7 | 3 | # Each directory to survive its way into a release will need a file |
0fd8d5d9 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 | ||
833c46e1 | 18 | arc_files="tc-arc.c tc-arc.h" |
bc70eba5 DE |
19 | |
20 | if ( echo $* | grep keep\-arc > /dev/null ) ; then | |
21 | keep_these_too="${arc_files} ${keep_these_too}" | |
22 | else | |
23 | lose_these_too="${arc_files} ${lose_these_too}" | |
24 | fi | |
25 | ||
9b1168d6 MH |
26 | d30v_files="tc-d30v.c tc-d30v.h" |
27 | ||
28 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
29 | keep_these_too="${d30v_files} ${keep_these_too}" | |
30 | else | |
31 | lose_these_too="${d30v_files} ${lose_these_too}" | |
32 | fi | |
33 | ||
64556643 FF |
34 | tic80_files="tc-tic80.c tc-tic80.h" |
35 | ||
36 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
37 | keep_these_too="${tic80_files} ${keep_these_too}" | |
38 | else | |
39 | lose_these_too="${tic80_files} ${lose_these_too}" | |
40 | fi | |
c6aa56bc | 41 | |
0fd8d5d9 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: | |
49 | ||
3e6e09c0 | 50 | aout_gnu.h |
0fd8d5d9 | 51 | atof-ieee.c |
b41390d2 | 52 | atof-tahoe.c |
0fd8d5d9 | 53 | atof-vax.c |
cd8aca19 | 54 | go32.cfg |
034988c6 ILT |
55 | e-i386coff.c |
56 | e-i386elf.c | |
511cd41c KR |
57 | e-mipsecoff.c |
58 | e-mipself.c | |
8e5c905e | 59 | itbl-mips.h |
a1c7c0f3 ILT |
60 | m68k-parse.h |
61 | m68k-parse.y | |
cd625bf3 | 62 | m88k-opcode.h |
0fd8d5d9 RP |
63 | obj-aout.c |
64 | obj-aout.h | |
0fd8d5d9 RP |
65 | obj-bout.c |
66 | obj-bout.h | |
67 | obj-coff.c | |
68 | obj-coff.h | |
e99f6f9c ILT |
69 | obj-ecoff.c |
70 | obj-ecoff.h | |
a4099f78 KR |
71 | obj-elf.c |
72 | obj-elf.h | |
f649d525 ILT |
73 | obj-evax.c |
74 | obj-evax.h | |
0fd8d5d9 RP |
75 | obj-generic.c |
76 | obj-generic.h | |
daae8c92 KR |
77 | obj-hp300.c |
78 | obj-hp300.h | |
fd345c9c SC |
79 | obj-ieee.c |
80 | obj-ieee.h | |
511cd41c KR |
81 | obj-multi.c |
82 | obj-multi.h | |
0fa747c4 JL |
83 | obj-som.c |
84 | obj-som.h | |
b41390d2 KR |
85 | obj-vms.c |
86 | obj-vms.h | |
0fd8d5d9 RP |
87 | tc-a29k.c |
88 | tc-a29k.h | |
5749c497 KR |
89 | tc-alpha.c |
90 | tc-alpha.h | |
6c3bc2b8 KR |
91 | tc-arm.c |
92 | tc-arm.h | |
8a683c67 ILT |
93 | tc-d10v.c |
94 | tc-d10v.h | |
0fd8d5d9 RP |
95 | tc-generic.c |
96 | tc-generic.h | |
fd345c9c SC |
97 | tc-h8300.c |
98 | tc-h8300.h | |
033400ec SC |
99 | tc-h8500.c |
100 | tc-h8500.h | |
daae8c92 KR |
101 | tc-hppa.c |
102 | tc-hppa.h | |
0fd8d5d9 RP |
103 | tc-i386.c |
104 | tc-i386.h | |
105 | tc-i860.c | |
106 | tc-i860.h | |
107 | tc-i960.c | |
108 | tc-i960.h | |
9f719a56 DE |
109 | tc-m32r.c |
110 | tc-m32r.h | |
0fd8d5d9 RP |
111 | tc-m68851.h |
112 | tc-m68k.c | |
113 | tc-m68k.h | |
cd625bf3 DHW |
114 | tc-m88k.c |
115 | tc-m88k.h | |
fd345c9c SC |
116 | tc-mips.c |
117 | tc-mips.h | |
ae1b99e4 JL |
118 | tc-mn10200.c |
119 | tc-mn10200.h | |
120 | tc-mn10300.c | |
121 | tc-mn10300.h | |
0fd8d5d9 RP |
122 | tc-ns32k.c |
123 | tc-ns32k.h | |
af46c203 ILT |
124 | tc-ppc.c |
125 | tc-ppc.h | |
4a1bbbe7 SC |
126 | tc-sh.c |
127 | tc-sh.h | |
6690d829 | 128 | tc-sparc.c |
920babce | 129 | tc-sparc.h |
af3b5ad2 KR |
130 | tc-tahoe.c |
131 | tc-tahoe.h | |
0fd8d5d9 RP |
132 | tc-vax.c |
133 | tc-vax.h | |
b3235d56 SC |
134 | tc-w65.c |
135 | tc-w65.h | |
6ff87ead NC |
136 | tc-v850.c |
137 | tc-v850.h | |
163107a1 SC |
138 | tc-z8k.c |
139 | tc-z8k.h | |
daae8c92 | 140 | te-386bsd.h |
66b935da | 141 | te-aux.h |
757d4129 | 142 | te-delta.h |
880b7429 | 143 | te-delt88.h |
0fd8d5d9 | 144 | te-dpx2.h |
f5ed78de | 145 | te-dynix.h |
0fd8d5d9 | 146 | te-generic.h |
cd8aca19 | 147 | te-go32.h |
daae8c92 KR |
148 | te-hp300.h |
149 | te-hppa.h | |
cd625bf3 | 150 | te-i386aix.h |
0fd8d5d9 | 151 | te-ic960.h |
daae8c92 | 152 | te-linux.h |
d3ecee39 | 153 | te-lnews.h |
d0c25cae | 154 | te-lynx.h |
5efa30fa | 155 | te-mach.h |
75d1d87a | 156 | te-macos.h |
511cd41c | 157 | te-multi.h |
04050d57 | 158 | te-nbsd.h |
d5a0eeac | 159 | te-nbsd532.h |
f68880ea | 160 | te-pc532mach.h |
b04b02a5 | 161 | te-pe.h |
cd8aca19 | 162 | te-ppcnw.h |
8a6f53e9 | 163 | te-psos.h |
69c1de90 | 164 | te-riscix.h |
df4021c1 | 165 | te-sparcaout.h |
0fd8d5d9 | 166 | te-sun3.h |
fee3e248 | 167 | te-svr4.h |
920babce | 168 | te-sysv32.h |
0fd8d5d9 | 169 | vax-inst.h |
ba466c4c | 170 | vms-conf.h |
f649d525 | 171 | vms-a-conf.h |
0fd8d5d9 | 172 | |
87756e15 RP |
173 | Things-to-lose: |
174 | ||
0fd8d5d9 RP |
175 | Do-last: |
176 | ||
276c2d7d GRK |
177 | r5900_files="tc-mips.c" |
178 | ||
179 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then | |
180 | for i in $r5900_files ; do | |
181 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
182 | if [ -n "${verbose}" ] ; then | |
183 | echo Keeping r5900 stuff in $i | |
184 | fi | |
185 | fi | |
186 | done | |
187 | else | |
188 | for i in * ; do | |
189 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
190 | if [ -n "${verbose}" ] ; then | |
191 | echo Removing traces of \"r5900\" from $i... | |
192 | fi | |
193 | cp $i new | |
32e23ecd | 194 | sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new |
276c2d7d GRK |
195 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
196 | if [ -n "${verbose}" ] ; then | |
197 | echo Caching $i in .Recover... | |
198 | fi | |
199 | mv $i .Recover | |
200 | fi | |
201 | mv new $i | |
202 | fi | |
203 | done | |
204 | fi | |
205 | ||
54d5e0fb AMT |
206 | tic80_files="obj-coff.h" |
207 | ||
208 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
209 | for i in $tic80_files ; do | |
210 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
211 | if [ -n "${verbose}" ] ; then | |
212 | echo Keeping tic80 stuff in $i | |
213 | fi | |
214 | fi | |
215 | done | |
216 | else | |
217 | for i in * ; do | |
218 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
219 | if [ -n "${verbose}" ] ; then | |
220 | echo Removing traces of \"tic80\" from $i... | |
221 | fi | |
222 | cp $i new | |
32e23ecd | 223 | sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new |
54d5e0fb | 224 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
bf5ac1b8 JR |
225 | if [ -n "${verbose}" ] ; then |
226 | echo Caching $i in .Recover... | |
227 | fi | |
228 | mv $i .Recover | |
229 | fi | |
230 | mv new $i | |
231 | fi | |
232 | done | |
233 | fi | |
234 | ||
235 | if [ -n "${verbose}" ] ; then | |
236 | echo Processing \"sh4\"... | |
237 | fi | |
238 | ||
239 | sh4_files="tc-sh.c" | |
240 | if ( echo $* | grep keep\-sh4 > /dev/null ) ; then | |
241 | for i in $sh4_files ; do | |
242 | if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then | |
243 | if [ -n "${verbose}" ] ; then | |
244 | echo Keeping sh4 stuff in $i | |
245 | fi | |
246 | fi | |
247 | done | |
248 | else | |
249 | for i in $sh4_files ; do | |
250 | if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then | |
251 | if [ -n "${verbose}" ] ; then | |
252 | echo Removing traces of \"sh4\" from $i... | |
253 | fi | |
254 | cp $i new | |
255 | sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new | |
256 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
54d5e0fb AMT |
257 | if [ -n "${verbose}" ] ; then |
258 | echo Caching $i in .Recover... | |
259 | fi | |
260 | mv $i .Recover | |
261 | fi | |
262 | mv new $i | |
263 | fi | |
264 | done | |
265 | fi | |
266 | ||
32e23ecd NC |
267 | v850e_files="tc-v850.c tc-v850.h" |
268 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then | |
58036ae4 NC |
269 | if ( echo $* | grep keep\-v850eq > /dev/null ) ; then |
270 | for i in $v850e_files ; do | |
323b12f8 | 271 | if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then |
58036ae4 NC |
272 | if [ -n "${verbose}" ] ; then |
273 | echo Keeping v850e and v850eq stuff in $i | |
274 | fi | |
275 | fi | |
276 | done | |
277 | else | |
32e23ecd | 278 | for i in $v850e_files ; do |
323b12f8 | 279 | if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then |
32e23ecd NC |
280 | if [ -n "${verbose}" ] ; then |
281 | echo Removing traces of \"v850eq\" from $i... | |
282 | fi | |
283 | cp $i new | |
284 | sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new | |
285 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
286 | if [ -n "${verbose}" ] ; then | |
287 | echo Caching $i in .Recover... | |
288 | fi | |
289 | mv $i .Recover | |
290 | fi | |
291 | mv new $i | |
292 | fi | |
293 | done | |
58036ae4 | 294 | fi |
32e23ecd NC |
295 | else |
296 | if ( echo $* | grep keep\-v850eq > /dev/null ) ; then | |
297 | for i in $v850e_files ; do | |
323b12f8 | 298 | if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then |
32e23ecd NC |
299 | if [ -n "${verbose}" ] ; then |
300 | echo Keeping v850e and v850eq stuff in $i | |
301 | fi | |
302 | fi | |
303 | done | |
304 | else | |
305 | for i in $v850e_files ; do | |
323b12f8 | 306 | if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then |
32e23ecd NC |
307 | if [ -n "${verbose}" ] ; then |
308 | echo Removing traces of \"v850e\" from $i... | |
309 | fi | |
310 | cp $i new | |
311 | sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new | |
32e23ecd NC |
312 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
313 | if [ -n "${verbose}" ] ; then | |
314 | echo Caching $i in .Recover... | |
315 | fi | |
316 | mv $i .Recover | |
317 | fi | |
58036ae4 NC |
318 | mv new $i |
319 | fi | |
323b12f8 | 320 | if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then |
58036ae4 NC |
321 | if [ -n "${verbose}" ] ; then |
322 | echo Removing traces of \"v850eq\" from $i... | |
323 | fi | |
324 | cp $i new | |
325 | sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new | |
326 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
327 | if [ -n "${verbose}" ] ; then | |
328 | echo Caching $i in .Recover... | |
329 | fi | |
330 | mv $i .Recover | |
331 | fi | |
332 | mv new $i | |
32e23ecd NC |
333 | fi |
334 | done | |
335 | fi | |
336 | fi | |
276c2d7d | 337 | |
0fd8d5d9 | 338 | # End of file. |