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