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 | ||
7be9a312 MH |
26 | d10v_files="tc-d10v.c tc-d10v.h" |
27 | ||
28 | if ( echo $* | grep keep\-d10v > /dev/null ) ; then | |
29 | keep_these_too="${d10v_files} ${keep_these_too}" | |
30 | else | |
31 | lose_these_too="${d10v_files} ${lose_these_too}" | |
32 | fi | |
33 | ||
9b1168d6 MH |
34 | d30v_files="tc-d30v.c tc-d30v.h" |
35 | ||
36 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
37 | keep_these_too="${d30v_files} ${keep_these_too}" | |
38 | else | |
39 | lose_these_too="${d30v_files} ${lose_these_too}" | |
40 | fi | |
41 | ||
c6aa56bc C |
42 | v850_files="tc-v850.c tc-v850.h" |
43 | ||
44 | if ( echo $* | grep keep\-v850 > /dev/null ) ; then | |
45 | keep_these_too="${v850_files} ${keep_these_too}" | |
46 | else | |
47 | lose_these_too="${v850_files} ${lose_these_too}" | |
48 | fi | |
49 | ||
64556643 FF |
50 | tic80_files="tc-tic80.c tc-tic80.h" |
51 | ||
52 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
53 | keep_these_too="${tic80_files} ${keep_these_too}" | |
54 | else | |
55 | lose_these_too="${tic80_files} ${lose_these_too}" | |
56 | fi | |
c6aa56bc | 57 | |
0fd8d5d9 RP |
58 | # All files listed between the "Things-to-keep:" line and the |
59 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
60 | # Directories listed in this section will have their own Sanitize | |
61 | # called. Directories not listed will be removed in their entirety | |
62 | # with rm -rf. | |
63 | ||
64 | Things-to-keep: | |
65 | ||
3e6e09c0 | 66 | aout_gnu.h |
ff15324f KR |
67 | arm-big.mt |
68 | arm-lit.mt | |
0fd8d5d9 | 69 | atof-ieee.c |
b41390d2 | 70 | atof-tahoe.c |
0fd8d5d9 | 71 | atof-vax.c |
cd8aca19 | 72 | go32.cfg |
511cd41c KR |
73 | e-mipsecoff.c |
74 | e-mipself.c | |
6066ebad | 75 | i386coff.mt |
8e5c905e | 76 | itbl-mips.h |
a1c7c0f3 ILT |
77 | m68k-parse.h |
78 | m68k-parse.y | |
3ad9ec6a | 79 | m68kcoff.mt |
cd625bf3 | 80 | m88k-opcode.h |
77a401e2 | 81 | m88kcoff.mt |
e99f6f9c ILT |
82 | mips-big.mt |
83 | mips-lit.mt | |
0fd8d5d9 RP |
84 | obj-aout.c |
85 | obj-aout.h | |
0fd8d5d9 RP |
86 | obj-bout.c |
87 | obj-bout.h | |
88 | obj-coff.c | |
89 | obj-coff.h | |
e99f6f9c ILT |
90 | obj-ecoff.c |
91 | obj-ecoff.h | |
a4099f78 KR |
92 | obj-elf.c |
93 | obj-elf.h | |
f649d525 ILT |
94 | obj-evax.c |
95 | obj-evax.h | |
0fd8d5d9 RP |
96 | obj-generic.c |
97 | obj-generic.h | |
daae8c92 KR |
98 | obj-hp300.c |
99 | obj-hp300.h | |
fd345c9c SC |
100 | obj-ieee.c |
101 | obj-ieee.h | |
511cd41c KR |
102 | obj-multi.c |
103 | obj-multi.h | |
0fa747c4 JL |
104 | obj-som.c |
105 | obj-som.h | |
b41390d2 KR |
106 | obj-vms.c |
107 | obj-vms.h | |
8370e93e MM |
108 | ppc-big.mt |
109 | ppc-lit.mt | |
159e6ef8 | 110 | ppc-sol.mt |
4fe0fddd | 111 | sco5.mt |
0fd8d5d9 RP |
112 | tc-a29k.c |
113 | tc-a29k.h | |
5749c497 KR |
114 | tc-alpha.c |
115 | tc-alpha.h | |
6c3bc2b8 KR |
116 | tc-arm.c |
117 | tc-arm.h | |
0fd8d5d9 RP |
118 | tc-generic.c |
119 | tc-generic.h | |
fd345c9c SC |
120 | tc-h8300.c |
121 | tc-h8300.h | |
033400ec SC |
122 | tc-h8500.c |
123 | tc-h8500.h | |
daae8c92 KR |
124 | tc-hppa.c |
125 | tc-hppa.h | |
0fd8d5d9 RP |
126 | tc-i386.c |
127 | tc-i386.h | |
128 | tc-i860.c | |
129 | tc-i860.h | |
130 | tc-i960.c | |
131 | tc-i960.h | |
132 | tc-m68851.h | |
133 | tc-m68k.c | |
134 | tc-m68k.h | |
cd625bf3 DHW |
135 | tc-m88k.c |
136 | tc-m88k.h | |
fd345c9c SC |
137 | tc-mips.c |
138 | tc-mips.h | |
ae1b99e4 JL |
139 | tc-mn10200.c |
140 | tc-mn10200.h | |
141 | tc-mn10300.c | |
142 | tc-mn10300.h | |
0fd8d5d9 RP |
143 | tc-ns32k.c |
144 | tc-ns32k.h | |
af46c203 ILT |
145 | tc-ppc.c |
146 | tc-ppc.h | |
4a1bbbe7 SC |
147 | tc-sh.c |
148 | tc-sh.h | |
6690d829 | 149 | tc-sparc.c |
920babce | 150 | tc-sparc.h |
af3b5ad2 KR |
151 | tc-tahoe.c |
152 | tc-tahoe.h | |
0fd8d5d9 RP |
153 | tc-vax.c |
154 | tc-vax.h | |
b3235d56 SC |
155 | tc-w65.c |
156 | tc-w65.h | |
163107a1 SC |
157 | tc-z8k.c |
158 | tc-z8k.h | |
daae8c92 | 159 | te-386bsd.h |
66b935da | 160 | te-aux.h |
757d4129 | 161 | te-delta.h |
880b7429 | 162 | te-delt88.h |
0fd8d5d9 | 163 | te-dpx2.h |
f5ed78de | 164 | te-dynix.h |
0fd8d5d9 | 165 | te-generic.h |
cd8aca19 | 166 | te-go32.h |
daae8c92 KR |
167 | te-hp300.h |
168 | te-hppa.h | |
cd625bf3 | 169 | te-i386aix.h |
0fd8d5d9 | 170 | te-ic960.h |
daae8c92 | 171 | te-linux.h |
d0c25cae | 172 | te-lynx.h |
5efa30fa | 173 | te-mach.h |
75d1d87a | 174 | te-macos.h |
511cd41c | 175 | te-multi.h |
04050d57 | 176 | te-nbsd.h |
d5a0eeac | 177 | te-nbsd532.h |
f68880ea | 178 | te-pc532mach.h |
b04b02a5 | 179 | te-pe.h |
cd8aca19 | 180 | te-ppcnw.h |
8a6f53e9 | 181 | te-psos.h |
69c1de90 | 182 | te-riscix.h |
0fd8d5d9 | 183 | te-sco386.h |
df4021c1 | 184 | te-sparcaout.h |
0fd8d5d9 | 185 | te-sun3.h |
920babce | 186 | te-sysv32.h |
0fd8d5d9 | 187 | vax-inst.h |
ba466c4c | 188 | vms-conf.h |
f649d525 | 189 | vms-a-conf.h |
0fd8d5d9 | 190 | |
87756e15 RP |
191 | Things-to-lose: |
192 | ||
0fd8d5d9 RP |
193 | Do-last: |
194 | ||
276c2d7d GRK |
195 | r5900_files="tc-mips.c" |
196 | ||
197 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then | |
198 | for i in $r5900_files ; do | |
199 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
200 | if [ -n "${verbose}" ] ; then | |
201 | echo Keeping r5900 stuff in $i | |
202 | fi | |
203 | fi | |
204 | done | |
205 | else | |
206 | for i in * ; do | |
207 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
208 | if [ -n "${verbose}" ] ; then | |
209 | echo Removing traces of \"r5900\" from $i... | |
210 | fi | |
211 | cp $i new | |
212 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
213 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
214 | if [ -n "${verbose}" ] ; then | |
215 | echo Caching $i in .Recover... | |
216 | fi | |
217 | mv $i .Recover | |
218 | fi | |
219 | mv new $i | |
220 | fi | |
221 | done | |
222 | fi | |
223 | ||
224 | ||
0fd8d5d9 | 225 | # End of file. |