]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - opcodes/.Sanitize
* gencode.c: Add tx49 configury and insns.
[thirdparty/binutils-gdb.git] / opcodes / .Sanitize
CommitLineData
67c2d8c8 1# .Sanitize for devo/opcodes.
a4ccc310 2
e7c4e61c 3# Each directory to survive its way into a release will need a file
a4ccc310
SC
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
10f1b597 14# done in this directory.
a4ccc310
SC
15
16Do-first:
17
b2e3f844
MH
18d30v_files="d30v-dis.c d30v-opc.c"
19
20if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21 keep_these_too="${d30v_files} ${keep_these_too}"
22else
23 lose_these_too="${d30v_files} ${lose_these_too}"
24fi
25
6357e7f6
FF
26tic80_files="tic80-opc.c tic80-dis.c"
27
28if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
29 keep_these_too="${tic80_files} ${keep_these_too}"
30else
31 lose_these_too="${tic80_files} ${lose_these_too}"
32fi
33
a4ccc310
SC
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
40Things-to-keep:
87756e15 41
a4ccc310 42ChangeLog
1daed53f 43Makefile.am
add1fb05 44Makefile.in
1daed53f
ILT
45acconfig.h
46acinclude.m4
9b65d522 47aclocal.m4
5f8f6d56 48alpha-dis.c
96926bf0 49alpha-opc.c
2b0c643b
DE
50arc-dis.c
51arc-opc.c
ba08215a
KR
52arm-dis.c
53arm-opc.h
720b3aed 54a29k-dis.c
35855192
DE
55cgen-asm.c
56cgen-dis.c
57cgen-opc.c
50982f7f
KR
58config.in
59configure
fc984fdb 60configure.bat
add1fb05 61configure.in
a3c5b9a4
JW
62d10v-dis.c
63d10v-opc.c
f76db60b 64dep-in.sed
117733ad 65dis-buf.c
204c9148 66disassemble.c
3b4cc5ec 67h8300-dis.c
337110ea
SC
68h8500-dis.c
69h8500-opc.h
cfa8d061 70hppa-dis.c
c840244e 71i386-dis.c
720b3aed 72i960-dis.c
35855192
DE
73m32r-asm.c
74m32r-dis.c
75m32r-opc.c
76m32r-opc.h
c840244e 77m68k-dis.c
85093dca 78m68k-opc.c
a4c01299 79m88k-dis.c
03496c49 80makefile.vms
bf1dd2fd 81mips-dis.c
69135a69 82mips-opc.c
8d67dc30 83mips16-opc.c
28e8de41
ILT
84m10200-dis.c
85m10200-opc.c
86m10300-dis.c
87m10300-opc.c
7a4f107d 88mpw-config.in
077bd46a 89mpw-make.sed
2a097d73 90ns32k-dis.c
89221bd5
ILT
91ppc-dis.c
92ppc-opc.c
8679a71f
SC
93sh-opc.h
94sh-dis.c
117733ad 95sparc-dis.c
c3a1191a 96sparc-opc.c
1daed53f 97stamp-h.in
50982f7f 98sysdep.h
9f744f91
SC
99w65-dis.c
100w65-opc.h
d345d883
NC
101v850-opc.c
102v850-dis.c
add1fb05 103z8k-dis.c
a4ccc310 104z8k-opc.h
ea2598e4 105z8kgen.c
add1fb05 106
87756e15
RP
107Things-to-lose:
108
62ba1060
SC
109Do-last:
110
a3d2e13b 111d30v_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
b2e3f844
MH
112if ( echo $* | grep keep\-d30v > /dev/null ) ; then
113 for i in $d30v_files ; do
114 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
115 if [ -n "${verbose}" ] ; then
116 echo Keeping d30v stuff in $i
117 fi
118 fi
119 done
120else
121 for i in $d30v_files ; do
122 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
123 if [ -n "${verbose}" ] ; then
124 echo Removing traces of \"d30v\" from $i...
125 fi
126 cp $i new
127 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
128 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
129 if [ -n "${verbose}" ] ; then
130 echo Caching $i in .Recover...
131 fi
132 mv $i .Recover
133 fi
134 mv new $i
135 fi
136 done
137fi
138
f61b671d 139v850e_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c v850-opc.c v850-dis.c"
010916c2 140if ( echo $* | grep keep\-v850e > /dev/null ) ; then
f61b671d 141 for i in $v850e_files ; do
010916c2 142 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
f61b671d 143 if [ -n "${verbose}" ] ; then
010916c2 144 echo Keeping v850e stuff in $i
f61b671d
NC
145 fi
146 fi
147 done
010916c2 148else
f61b671d 149 for i in $v850e_files ; do
ab11a82c 150 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
f61b671d 151 if [ -n "${verbose}" ] ; then
010916c2 152 echo Removing traces of \"v850e\" from $i...
f61b671d
NC
153 fi
154 cp $i new
ab11a82c 155 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
f61b671d
NC
156 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
157 if [ -n "${verbose}" ] ; then
158 echo Caching $i in .Recover...
159 fi
160 mv $i .Recover
161 fi
162 mv new $i
163 fi
164 done
165fi
166
ab11a82c 167
276c2d7d
GRK
168r5900_files="ChangeLog mips-opc.c"
169if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
170 for i in $r5900_files ; do
171 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
172 if [ -n "${verbose}" ] ; then
173 echo Keeping r5900 stuff in $i
174 fi
175 fi
176 done
177else
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 Removing traces of \"r5900\" from $i...
182 fi
183 cp $i new
184 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
185 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
186 if [ -n "${verbose}" ] ; then
6d1e1ee8
C
187 echo Caching $i in .Recover...
188 fi
189 mv $i .Recover
190 fi
191 mv new $i
192 fi
193 done
194fi
195
a3066d9a
KR
196vr5400_files="ChangeLog mips-opc.c"
197if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
198 for i in $vr5400_files ; do
199 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
200 if [ -n "${verbose}" ] ; then
201 echo Keeping vr5400 stuff in $i
202 fi
203 fi
204 done
205else
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 Removing traces of \"vr5400\" from $i...
210 fi
211 cp $i new
212 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/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
222fi
223
d9a52316
GRK
224tx19_files="ChangeLog mips16-opc.c"
225if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
226 for i in $tx19_files ; do
227 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
228 if [ -n "${verbose}" ] ; then
229 echo Keeping tx19 stuff in $i
230 fi
231 fi
232 done
233else
234 for i in $tx19_files ; do
235 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
236 if [ -n "${verbose}" ] ; then
237 echo Removing traces of \"tx19\" from $i...
238 fi
239 cp $i new
240 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
241 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
242 if [ -n "${verbose}" ] ; then
243 echo Caching $i in .Recover...
244 fi
245 mv $i .Recover
246 fi
247 mv new $i
248 fi
249 done
250fi
251
a3d2e13b 252tic80_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
6357e7f6
FF
253if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
254 for i in $tic80_files ; do
255 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
256 if [ -n "${verbose}" ] ; then
257 echo Keeping tic80 stuff in $i
258 fi
259 fi
260 done
261else
262 for i in $tic80_files ; do
263 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
264 if [ -n "${verbose}" ] ; then
265 echo Removing traces of \"tic80\" from $i...
266 fi
267 cp $i new
268 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
269 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
270 if [ -n "${verbose}" ] ; then
271 echo Caching $i in .Recover...
272 fi
273 mv $i .Recover
274 fi
275 mv new $i
276 fi
277 done
278fi
279
3b12e2d3
C
280coldfire_files="ChangeLog m68k-opc.c"
281if ( echo $* | grep keep\-coldfire > /dev/null ) ; then
282 for i in $coldfire_files ; do
283 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
284 if [ -n "${verbose}" ] ; then
285 echo Keeping coldfire stuff in $i
286 fi
287 fi
288 done
289else
290 for i in $coldfire_files ; do
291 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
292 if [ -n "${verbose}" ] ; then
293 echo Removing traces of \"coldfire\" from $i...
294 fi
295 cp $i new
296 sed '/start\-sanitize\-coldfire/,/end-\sanitize\-coldfire/d' < $i > new
297 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
298 if [ -n "${verbose}" ] ; then
299 echo Caching $i in .Recover...
300 fi
301 mv $i .Recover
302 fi
303 mv new $i
304 fi
305 done
306fi
6d1e1ee8 307
bf5ac1b8
JR
308if [ -n "${verbose}" ] ; then
309 echo Processing \"sh4\"...
310fi
311
312sh4_files="ChangeLog sh-opc.h sh-dis.c"
313if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
314 for i in $sh4_files ; do
315 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
316 if [ -n "${verbose}" ] ; then
317 echo Keeping sh4 stuff in $i
318 fi
319 fi
320 done
321else
322 for i in $sh4_files ; do
323 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
324 if [ -n "${verbose}" ] ; then
325 echo Removing traces of \"sh4\" from $i...
326 fi
327 cp $i new
328 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
329 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
330 if [ -n "${verbose}" ] ; then
331 echo Caching $i in .Recover...
332 fi
333 mv $i .Recover
334 fi
335 mv new $i
336 fi
337 done
338fi
339
5c680afd
MT
340for i in * ; do
341 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
342 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
343 fi
344done
345
a4ccc310 346# End of file.