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