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