Remove v850e sanitization
[deliverable/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
ab0bd049 18cygnus_files="cgen.sh cgen-asm.in cgen-dis.in cgen-opc.in"
bfc10abe
DE
19
20if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
21 keep_these_too="${cygnus_files} ${keep_these_too}"
22else
23 lose_these_too="${cygnus_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
37130f11 34sky_files="dvp-opc.c dvp-dis.c"
54cc8ed4
DE
35
36if ( echo $* | grep keep\-sky > /dev/null ) ; then
37 keep_these_too="${sky_files} ${keep_these_too}"
38else
39 lose_these_too="${sky_files} ${lose_these_too}"
40fi
41
a4ccc310
SC
42# All files listed between the "Things-to-keep:" line and the
43# "Files-to-sed:" line will be kept. All other files will be removed.
44# Directories listed in this section will have their own Sanitize
45# called. Directories not listed will be removed in their entirety
46# with rm -rf.
47
48Things-to-keep:
87756e15 49
a4ccc310 50ChangeLog
1daed53f 51Makefile.am
add1fb05 52Makefile.in
1daed53f
ILT
53acconfig.h
54acinclude.m4
9b65d522 55aclocal.m4
5f8f6d56 56alpha-dis.c
96926bf0 57alpha-opc.c
2b0c643b
DE
58arc-dis.c
59arc-opc.c
ba08215a
KR
60arm-dis.c
61arm-opc.h
720b3aed 62a29k-dis.c
35855192
DE
63cgen-asm.c
64cgen-dis.c
65cgen-opc.c
50982f7f
KR
66config.in
67configure
fc984fdb 68configure.bat
add1fb05 69configure.in
a3c5b9a4
JW
70d10v-dis.c
71d10v-opc.c
faec70d6
ILT
72d30v-dis.c
73d30v-opc.c
f76db60b 74dep-in.sed
117733ad 75dis-buf.c
204c9148 76disassemble.c
21b2e62f
DE
77fr30-asm.c
78fr30-dis.c
79fr30-opc.c
80fr30-opc.h
3b4cc5ec 81h8300-dis.c
337110ea
SC
82h8500-dis.c
83h8500-opc.h
cfa8d061 84hppa-dis.c
c840244e 85i386-dis.c
720b3aed 86i960-dis.c
10cb538e
JW
87i960c-asm.c
88i960c-dis.c
89i960c-opc.c
90i960c-opc.h
35855192
DE
91m32r-asm.c
92m32r-dis.c
93m32r-opc.c
94m32r-opc.h
c840244e 95m68k-dis.c
85093dca 96m68k-opc.c
a4c01299 97m88k-dis.c
03496c49 98makefile.vms
bf1dd2fd 99mips-dis.c
69135a69 100mips-opc.c
8d67dc30 101mips16-opc.c
28e8de41
ILT
102m10200-dis.c
103m10200-opc.c
104m10300-dis.c
105m10300-opc.c
7a4f107d 106mpw-config.in
077bd46a 107mpw-make.sed
2a097d73 108ns32k-dis.c
4139b063 109opintl.h
f7934c1a 110po
89221bd5
ILT
111ppc-dis.c
112ppc-opc.c
8679a71f
SC
113sh-opc.h
114sh-dis.c
117733ad 115sparc-dis.c
c3a1191a 116sparc-opc.c
1daed53f 117stamp-h.in
50982f7f 118sysdep.h
53487a7b 119tic30-dis.c
69ad8cac 120vax-dis.c
9f744f91
SC
121w65-dis.c
122w65-opc.h
d345d883
NC
123v850-opc.c
124v850-dis.c
add1fb05 125z8k-dis.c
a4ccc310 126z8k-opc.h
ea2598e4 127z8kgen.c
add1fb05 128
87756e15
RP
129Things-to-lose:
130
62ba1060 131Do-last:
c80fb0d3
FL
132never_files="Makefile.am Makefile.in"
133for i in $never_files ; do
134 if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then
135 if [ -n "${verbose}" ] ; then
136 echo Removing traces of \"cygnus-never\" from $i...
137 fi
138 cp $i new
139 sed '/start\-sanitize\-cygnus-never/,/end\-sanitize\-cygnus-never/d' < $i > new
140 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
141 if [ -n "${verbose}" ] ; then
142 echo Caching $i in .Recover...
143 fi
144 mv $i .Recover
145 fi
146 mv new $i
147 fi
148done
62ba1060 149
34ec21ff 150cygnus_files="ChangeLog Makefile.am Makefile.in configure.in configure m10300-opc.c m10300-dis.c"
bfc10abe
DE
151if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
152 for i in $cygnus_files ; do
153 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
154 if [ -n "${verbose}" ] ; then
155 echo Keeping cygnus stuff in $i
156 fi
157 fi
158 done
159else
160 for i in $cygnus_files ; do
161 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
162 if [ -n "${verbose}" ] ; then
163 echo Removing traces of \"cygnus\" from $i...
164 fi
165 cp $i new
166 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
167 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
168 if [ -n "${verbose}" ] ; then
169 echo Caching $i in .Recover...
9eb61c7c
JL
170 fi
171 mv $i .Recover
172 fi
173 mv new $i
174 fi
175 done
176fi
177
ffee80df 178r5900_files="ChangeLog mips-opc.c mips-dis.c Makefile.am Makefile.in"
276c2d7d
GRK
179if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
180 for i in $r5900_files ; do
181 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
182 if [ -n "${verbose}" ] ; then
183 echo Keeping r5900 stuff in $i
184 fi
185 fi
186 done
187else
188 for i in $r5900_files ; do
189 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
190 if [ -n "${verbose}" ] ; then
191 echo Removing traces of \"r5900\" from $i...
192 fi
193 cp $i new
194 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
195 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
196 if [ -n "${verbose}" ] ; then
6d1e1ee8
C
197 echo Caching $i in .Recover...
198 fi
199 mv $i .Recover
200 fi
201 mv new $i
202 fi
203 done
204fi
205
779b65bf
GRK
206vr4320_files="ChangeLog mips-opc.c mips-dis.c"
207if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
208 for i in $vr4320_files ; do
209 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
210 if [ -n "${verbose}" ] ; then
211 echo Keeping vr4320 stuff in $i
212 fi
213 fi
214 done
215else
216 for i in $vr4320_files ; do
217 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
218 if [ -n "${verbose}" ] ; then
219 echo Removing traces of \"vr4320\" from $i...
220 fi
221 cp $i new
222 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
223 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
224 if [ -n "${verbose}" ] ; then
f14397f0
GRK
225 echo Caching $i in .Recover...
226 fi
227 mv $i .Recover
228 fi
229 mv new $i
230 fi
231 done
232fi
233
234vr4xxx_files="ChangeLog mips-opc.c mips-dis.c"
235if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
236 for i in $vr4xxx_files ; do
237 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
238 if [ -n "${verbose}" ] ; then
239 echo Keeping vr4xxx stuff in $i
240 fi
241 fi
242 done
243else
244 for i in $vr4xxx_files ; do
245 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
246 if [ -n "${verbose}" ] ; then
247 echo Removing traces of \"vr4xxx\" from $i...
248 fi
249 cp $i new
250 sed '/start\-sanitize\-vr4xxx/,/end-\sanitize\-vr4xxx/d' < $i > new
251 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
252 if [ -n "${verbose}" ] ; then
779b65bf
GRK
253 echo Caching $i in .Recover...
254 fi
255 mv $i .Recover
256 fi
257 mv new $i
258 fi
259 done
260fi
261
3d759c53
KR
262cygnus_files="ChangeLog mips-opc.c mips-dis.c"
263if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
264 for i in $cygnus_files ; do
265 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
a3066d9a 266 if [ -n "${verbose}" ] ; then
3d759c53 267 echo Keeping cygnus stuff in $i
a3066d9a
KR
268 fi
269 fi
270 done
271else
3d759c53
KR
272 for i in $cygnus_files ; do
273 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
a3066d9a 274 if [ -n "${verbose}" ] ; then
3d759c53 275 echo Removing traces of \"cygnus\" from $i...
a3066d9a
KR
276 fi
277 cp $i new
3d759c53 278 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
a3066d9a
KR
279 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
280 if [ -n "${verbose}" ] ; then
281 echo Caching $i in .Recover...
282 fi
283 mv $i .Recover
284 fi
285 mv new $i
286 fi
287 done
288fi
289
83af2335 290tx19_files="ChangeLog mips16-opc.c mips-dis.c"
d9a52316
GRK
291if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
292 for i in $tx19_files ; do
293 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
294 if [ -n "${verbose}" ] ; then
295 echo Keeping tx19 stuff in $i
296 fi
297 fi
298 done
299else
300 for i in $tx19_files ; do
301 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
302 if [ -n "${verbose}" ] ; then
303 echo Removing traces of \"tx19\" from $i...
304 fi
305 cp $i new
306 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
307 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
308 if [ -n "${verbose}" ] ; then
309 echo Caching $i in .Recover...
310 fi
311 mv $i .Recover
312 fi
313 mv new $i
314 fi
315 done
316fi
317
83af2335 318tx49_files="ChangeLog mips-opc.c mips-dis.c"
0cca41d4
GRK
319if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
320 for i in $tx49_files ; do
321 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
322 if [ -n "${verbose}" ] ; then
323 echo Keeping tx49 stuff in $i
324 fi
325 fi
326 done
327else
328 for i in $tx49_files ; do
329 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
330 if [ -n "${verbose}" ] ; then
331 echo Removing traces of \"tx49\" from $i...
332 fi
333 cp $i new
334 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
335 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
336 if [ -n "${verbose}" ] ; then
337 echo Caching $i in .Recover...
338 fi
339 mv $i .Recover
340 fi
341 mv new $i
342 fi
343 done
344fi
345
a3d2e13b 346tic80_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
6357e7f6
FF
347if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
348 for i in $tic80_files ; do
349 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
350 if [ -n "${verbose}" ] ; then
351 echo Keeping tic80 stuff in $i
352 fi
353 fi
354 done
355else
356 for i in $tic80_files ; do
357 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
358 if [ -n "${verbose}" ] ; then
359 echo Removing traces of \"tic80\" from $i...
360 fi
361 cp $i new
362 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
363 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
364 if [ -n "${verbose}" ] ; then
365 echo Caching $i in .Recover...
366 fi
367 mv $i .Recover
368 fi
369 mv new $i
370 fi
371 done
372fi
373
3b12e2d3
C
374coldfire_files="ChangeLog m68k-opc.c"
375if ( echo $* | grep keep\-coldfire > /dev/null ) ; then
376 for i in $coldfire_files ; do
377 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
378 if [ -n "${verbose}" ] ; then
379 echo Keeping coldfire stuff in $i
380 fi
381 fi
382 done
383else
384 for i in $coldfire_files ; do
385 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
386 if [ -n "${verbose}" ] ; then
387 echo Removing traces of \"coldfire\" from $i...
388 fi
389 cp $i new
390 sed '/start\-sanitize\-coldfire/,/end-\sanitize\-coldfire/d' < $i > new
391 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
392 if [ -n "${verbose}" ] ; then
393 echo Caching $i in .Recover...
394 fi
395 mv $i .Recover
396 fi
397 mv new $i
398 fi
399 done
400fi
6d1e1ee8 401
37130f11 402sky_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c mips-dis.c"
80c396f6
DE
403if ( echo $* | grep keep\-sky > /dev/null ) ; then
404 for i in $sky_files ; do
405 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
406 if [ -n "${verbose}" ] ; then
407 echo Keeping sky stuff in $i
408 fi
409 fi
410 done
411else
412 for i in $sky_files ; do
413 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
414 if [ -n "${verbose}" ] ; then
415 echo Removing traces of \"sky\" from $i...
416 fi
417 cp $i new
418 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
419 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
420 if [ -n "${verbose}" ] ; then
421 echo Caching $i in .Recover...
422 fi
423 mv $i .Recover
424 fi
425 mv new $i
426 fi
427 done
428fi
429
c62448bf
NC
430m32rx_files="ChangeLog m32r-opc.c m32r-opc.h m32r-dis.c m32r-asm.c"
431if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
432 for i in $m32rx_files ; do
433 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
434 if [ -n "${verbose}" ] ; then
435 echo Keeping m32rx stuff in $i
436 fi
437 fi
438 done
439else
440 for i in $m32rx_files ; do
441 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
442 if [ -n "${verbose}" ] ; then
443 echo Removing traces of \"m32rx\" from $i...
444 fi
445 cp $i new
0a7fed0d
DE
446 # The PIPE sanitization will be much cleaner with redact.
447 sed -e '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' \
448 -e 's/, PIPE_[A-Z]*//g' < $i > new
c62448bf
NC
449 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
450 if [ -n "${verbose}" ] ; then
451 echo Caching $i in .Recover...
452 fi
453 mv $i .Recover
454 fi
455 mv new $i
456 fi
457 done
458fi
459
52ce74dc
MM
460nortel_ppc750_files="ChangeLog ppc-opc.c"
461if ( echo $* | grep keep\-nortel-ppc750 > /dev/null ) ; then
462 for i in $nortel_ppc750_files ; do
463 if test -f $i && (grep sanitize-nortel-ppc750 $i > /dev/null) ; then
464 if [ -n "${verbose}" ] ; then
290ca45a 465 echo Keeping nortel-ppc750 stuff in $i
52ce74dc
MM
466 fi
467 fi
468 done
469else
470 for i in $nortel_ppc750_files ; do
471 if test -f $i && (grep sanitize-nortel-ppc750 $i > /dev/null) ; then
472 if [ -n "${verbose}" ] ; then
290ca45a 473 echo Removing traces of \"nortel-ppc750\" from $i...
52ce74dc
MM
474 fi
475 cp $i new
476 # The PIPE sanitization will be much cleaner with redact.
477 sed -e '/start\-sanitize\-nortel-ppc750/,/end\-sanitize\-nortel-ppc750/d' \
478 -e 's/, PIPE_[A-Z]*//g' < $i > new
479 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
480 if [ -n "${verbose}" ] ; then
481 echo Caching $i in .Recover...
482 fi
483 mv $i .Recover
484 fi
485 mv new $i
486 fi
487 done
488fi
489
53438a7b
ILT
490for i in *; do
491 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
492 echo '***' Some mentions of Sanitize are still left in opcodes/$i! 1>&2
493 fi
494done
495
496for lost in .. $lose_these_too; do
497 if test $lost != ..; then
498 for i in Makefile.am Makefile.in configure.in configure; do
499 if fgrep $lost $i >/dev/null 2>&1; then
500 echo '***' File $lost was sanitized out but is still mentioned in opcodes/$i 1>&2
501 fi
502 done
503 fi
5c680afd
MT
504done
505
8a660fab
NC
506# This must come after all other sanitizations. Re-sanitize the .pot
507# file.
508if [ -n "${verbose}" ]; then
509 echo Re-computing files for gettext ...
510fi
511
512if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
513 if [ -n "${verbose}" ]; then
514 echo Caching po/POTFILES.in in .Recover...
515 fi
516 mv po/POTFILES.in po/.Recover
517fi
518
c2400a02 519ls -1 *.[ch] cg*.in 2>/dev/null | sed -e 's,^\./,,' > po/POTFILES.in
8a660fab
NC
520
521if [ -n "${safe}" -a ! -f po/.Recover/opcodes.pot ]; then
522 if [ -n "${verbose}" ]; then
523 echo Caching po/opcodes.pot in .Recover...
524 fi
525 mv po/opcodes.pot po/.Recover
526fi
527
528# If this fails, Sanitization must fail.
6711d1ef 529xgettext -C -c -k_ -kN_ -f po/POTFILES.in -o po/opcodes.pot || exit 1
8a660fab 530
a4ccc310 531# End of file.
This page took 0.254667 seconds and 4 git commands to generate.