* mips-opc.c: Add cast when setting mips_opcodes.
[deliverable/binutils-gdb.git] / opcodes / .Sanitize
1 # .Sanitize for devo/opcodes.
2
3 # Each directory to survive its way into a release will need a file
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 directory.
15
16 Do-first:
17
18 arc_files="arc-dis.c arc-opc.c"
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
26 d30v_files="d30v-dis.c d30v-opc.c"
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
34 v850_files="v850-opc.c v850-dis.c"
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
42 tic80_files="tic80-opc.c tic80-dis.c"
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
49
50
51 # All files listed between the "Things-to-keep:" line and the
52 # "Files-to-sed:" line will be kept. All other files will be removed.
53 # Directories listed in this section will have their own Sanitize
54 # called. Directories not listed will be removed in their entirety
55 # with rm -rf.
56
57 Things-to-keep:
58
59 ChangeLog
60 Makefile.in
61 aclocal.m4
62 alpha-dis.c
63 alpha-opc.c
64 arm-dis.c
65 arm-opc.h
66 a29k-dis.c
67 config.in
68 configure
69 configure.bat
70 configure.in
71 d10v-dis.c
72 d10v-opc.c
73 dep-in.sed
74 dis-buf.c
75 disassemble.c
76 h8300-dis.c
77 h8500-dis.c
78 h8500-opc.h
79 hppa-dis.c
80 i386-dis.c
81 i960-dis.c
82 m68k-dis.c
83 m68k-opc.c
84 m88k-dis.c
85 makefile.vms
86 mips-dis.c
87 mips-opc.c
88 mips16-opc.c
89 mn10200-dis.c
90 mn10200-opc.c
91 mn10300-dis.c
92 mn10300-opc.c
93 mpw-config.in
94 mpw-make.sed
95 ns32k-dis.c
96 ppc-dis.c
97 ppc-opc.c
98 sh-opc.h
99 sh-dis.c
100 sparc-dis.c
101 sparc-opc.c
102 sysdep.h
103 w65-dis.c
104 w65-opc.h
105 z8k-dis.c
106 z8k-opc.h
107 z8kgen.c
108
109 Things-to-lose:
110
111 Do-last:
112
113 arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
114 if ( echo $* | grep keep\-arc > /dev/null ) ; then
115 for i in $arc_files ; do
116 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
117 if [ -n "${verbose}" ] ; then
118 echo Keeping arc stuff in $i
119 fi
120 fi
121 done
122 else
123 for i in $arc_files ; do
124 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
125 if [ -n "${verbose}" ] ; then
126 echo Removing traces of \"arc\" from $i...
127 fi
128 cp $i new
129 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
130 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
131 if [ -n "${verbose}" ] ; then
132 echo Caching $i in .Recover...
133 fi
134 mv $i .Recover
135 fi
136 mv new $i
137 fi
138 done
139 fi
140
141 d30v_files="ChangeLog Makefile.in configure.in configure disassemble.c"
142 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
143 for i in $d30v_files ; do
144 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
145 if [ -n "${verbose}" ] ; then
146 echo Keeping d30v stuff in $i
147 fi
148 fi
149 done
150 else
151 for i in $d30v_files ; do
152 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
153 if [ -n "${verbose}" ] ; then
154 echo Removing traces of \"d30v\" from $i...
155 fi
156 cp $i new
157 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
158 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
159 if [ -n "${verbose}" ] ; then
160 echo Caching $i in .Recover...
161 fi
162 mv $i .Recover
163 fi
164 mv new $i
165 fi
166 done
167 fi
168
169 v850_files="ChangeLog Makefile.in configure.in configure disassemble.c"
170 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
171 for i in $v850_files ; do
172 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
173 if [ -n "${verbose}" ] ; then
174 echo Keeping v850 stuff in $i
175 fi
176 fi
177 done
178 else
179 for i in $v850_files ; do
180 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
181 if [ -n "${verbose}" ] ; then
182 echo Removing traces of \"v850\" from $i...
183 fi
184 cp $i new
185 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
186 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
187 if [ -n "${verbose}" ] ; then
188 echo Caching $i in .Recover...
189 fi
190 mv $i .Recover
191 fi
192 mv new $i
193 fi
194 done
195 fi
196
197 r5900_files="ChangeLog mips-opc.c"
198 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
199 for i in $r5900_files ; do
200 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
201 if [ -n "${verbose}" ] ; then
202 echo Keeping r5900 stuff in $i
203 fi
204 fi
205 done
206 else
207 for i in $r5900_files ; do
208 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
209 if [ -n "${verbose}" ] ; then
210 echo Removing traces of \"r5900\" from $i...
211 fi
212 cp $i new
213 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
214 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
215 if [ -n "${verbose}" ] ; then
216 echo Caching $i in .Recover...
217 fi
218 mv $i .Recover
219 fi
220 mv new $i
221 fi
222 done
223 fi
224
225 tic80_files="ChangeLog Makefile.in configure.in configure disassemble.c"
226 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
227 for i in $tic80_files ; do
228 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
229 if [ -n "${verbose}" ] ; then
230 echo Keeping tic80 stuff in $i
231 fi
232 fi
233 done
234 else
235 for i in $tic80_files ; do
236 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
237 if [ -n "${verbose}" ] ; then
238 echo Removing traces of \"tic80\" from $i...
239 fi
240 cp $i new
241 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
242 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
243 if [ -n "${verbose}" ] ; then
244 echo Caching $i in .Recover...
245 fi
246 mv $i .Recover
247 fi
248 mv new $i
249 fi
250 done
251 fi
252
253 coldfire_files="ChangeLog m68k-opc.c"
254 if ( echo $* | grep keep\-coldfire > /dev/null ) ; then
255 for i in $coldfire_files ; do
256 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
257 if [ -n "${verbose}" ] ; then
258 echo Keeping coldfire stuff in $i
259 fi
260 fi
261 done
262 else
263 for i in $coldfire_files ; do
264 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
265 if [ -n "${verbose}" ] ; then
266 echo Removing traces of \"coldfire\" from $i...
267 fi
268 cp $i new
269 sed '/start\-sanitize\-coldfire/,/end-\sanitize\-coldfire/d' < $i > new
270 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
271 if [ -n "${verbose}" ] ; then
272 echo Caching $i in .Recover...
273 fi
274 mv $i .Recover
275 fi
276 mv new $i
277 fi
278 done
279 fi
280
281 for i in * ; do
282 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
283 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
284 fi
285 done
286
287 # End of file.
This page took 0.058304 seconds and 4 git commands to generate.