* Makefile.in (m32r.o): Depend on cpu.h
[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
bfc10abe
DE
18cygnus_files="cgen.sh cgen-asm.in cgen-dis.in"
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
b2e3f844
MH
26d30v_files="d30v-dis.c d30v-opc.c"
27
28if ( echo $* | grep keep\-d30v > /dev/null ) ; then
29 keep_these_too="${d30v_files} ${keep_these_too}"
30else
31 lose_these_too="${d30v_files} ${lose_these_too}"
32fi
33
6357e7f6
FF
34tic80_files="tic80-opc.c tic80-dis.c"
35
36if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
37 keep_these_too="${tic80_files} ${keep_these_too}"
38else
39 lose_these_too="${tic80_files} ${lose_these_too}"
40fi
41
37130f11 42sky_files="dvp-opc.c dvp-dis.c"
54cc8ed4
DE
43
44if ( echo $* | grep keep\-sky > /dev/null ) ; then
45 keep_these_too="${sky_files} ${keep_these_too}"
46else
47 lose_these_too="${sky_files} ${lose_these_too}"
48fi
49
a4ccc310
SC
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
56Things-to-keep:
87756e15 57
a4ccc310 58ChangeLog
1daed53f 59Makefile.am
add1fb05 60Makefile.in
1daed53f
ILT
61acconfig.h
62acinclude.m4
9b65d522 63aclocal.m4
5f8f6d56 64alpha-dis.c
96926bf0 65alpha-opc.c
2b0c643b
DE
66arc-dis.c
67arc-opc.c
ba08215a
KR
68arm-dis.c
69arm-opc.h
720b3aed 70a29k-dis.c
35855192
DE
71cgen-asm.c
72cgen-dis.c
73cgen-opc.c
50982f7f
KR
74config.in
75configure
fc984fdb 76configure.bat
add1fb05 77configure.in
a3c5b9a4
JW
78d10v-dis.c
79d10v-opc.c
f76db60b 80dep-in.sed
117733ad 81dis-buf.c
204c9148 82disassemble.c
3b4cc5ec 83h8300-dis.c
337110ea
SC
84h8500-dis.c
85h8500-opc.h
cfa8d061 86hppa-dis.c
c840244e 87i386-dis.c
720b3aed 88i960-dis.c
35855192
DE
89m32r-asm.c
90m32r-dis.c
91m32r-opc.c
92m32r-opc.h
c840244e 93m68k-dis.c
85093dca 94m68k-opc.c
a4c01299 95m88k-dis.c
03496c49 96makefile.vms
bf1dd2fd 97mips-dis.c
69135a69 98mips-opc.c
8d67dc30 99mips16-opc.c
28e8de41
ILT
100m10200-dis.c
101m10200-opc.c
102m10300-dis.c
103m10300-opc.c
7a4f107d 104mpw-config.in
077bd46a 105mpw-make.sed
2a097d73 106ns32k-dis.c
89221bd5
ILT
107ppc-dis.c
108ppc-opc.c
8679a71f
SC
109sh-opc.h
110sh-dis.c
117733ad 111sparc-dis.c
c3a1191a 112sparc-opc.c
1daed53f 113stamp-h.in
50982f7f 114sysdep.h
53487a7b 115tic30-dis.c
9f744f91
SC
116w65-dis.c
117w65-opc.h
d345d883
NC
118v850-opc.c
119v850-dis.c
add1fb05 120z8k-dis.c
a4ccc310 121z8k-opc.h
ea2598e4 122z8kgen.c
add1fb05 123
87756e15
RP
124Things-to-lose:
125
62ba1060
SC
126Do-last:
127
bfc10abe
DE
128cygnus_files="ChangeLog Makefile.am Makefile.in configure.in configure"
129if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
130 for i in $cygnus_files ; do
131 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
132 if [ -n "${verbose}" ] ; then
133 echo Keeping cygnus stuff in $i
134 fi
135 fi
136 done
137else
138 for i in $cygnus_files ; do
139 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
140 if [ -n "${verbose}" ] ; then
141 echo Removing traces of \"cygnus\" from $i...
142 fi
143 cp $i new
144 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
145 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
146 if [ -n "${verbose}" ] ; then
147 echo Caching $i in .Recover...
148 fi
149 mv $i .Recover
150 fi
151 mv new $i
152 fi
153 done
154fi
155
a3d2e13b 156d30v_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
b2e3f844
MH
157if ( echo $* | grep keep\-d30v > /dev/null ) ; then
158 for i in $d30v_files ; do
159 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
160 if [ -n "${verbose}" ] ; then
161 echo Keeping d30v stuff in $i
162 fi
163 fi
164 done
165else
166 for i in $d30v_files ; do
167 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
168 if [ -n "${verbose}" ] ; then
169 echo Removing traces of \"d30v\" from $i...
170 fi
171 cp $i new
172 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
173 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
174 if [ -n "${verbose}" ] ; then
175 echo Caching $i in .Recover...
176 fi
177 mv $i .Recover
178 fi
179 mv new $i
180 fi
181 done
182fi
183
f61b671d 184v850e_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c v850-opc.c v850-dis.c"
010916c2 185if ( echo $* | grep keep\-v850e > /dev/null ) ; then
f61b671d 186 for i in $v850e_files ; do
010916c2 187 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
f61b671d 188 if [ -n "${verbose}" ] ; then
010916c2 189 echo Keeping v850e stuff in $i
f61b671d
NC
190 fi
191 fi
192 done
010916c2 193else
f61b671d 194 for i in $v850e_files ; do
ab11a82c 195 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
f61b671d 196 if [ -n "${verbose}" ] ; then
010916c2 197 echo Removing traces of \"v850e\" from $i...
f61b671d
NC
198 fi
199 cp $i new
ab11a82c 200 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
f61b671d
NC
201 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
202 if [ -n "${verbose}" ] ; then
203 echo Caching $i in .Recover...
204 fi
205 mv $i .Recover
206 fi
207 mv new $i
208 fi
209 done
210fi
211
ab11a82c 212
83af2335 213r5900_files="ChangeLog mips-opc.c mips-dis.c"
276c2d7d
GRK
214if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
215 for i in $r5900_files ; do
216 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
217 if [ -n "${verbose}" ] ; then
218 echo Keeping r5900 stuff in $i
219 fi
220 fi
221 done
222else
223 for i in $r5900_files ; do
224 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
225 if [ -n "${verbose}" ] ; then
226 echo Removing traces of \"r5900\" from $i...
227 fi
228 cp $i new
229 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
230 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
231 if [ -n "${verbose}" ] ; then
6d1e1ee8
C
232 echo Caching $i in .Recover...
233 fi
234 mv $i .Recover
235 fi
236 mv new $i
237 fi
238 done
239fi
240
cfca14e7 241vr5400_files="ChangeLog mips-opc.c mips-dis.c"
a3066d9a
KR
242if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
243 for i in $vr5400_files ; do
244 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
245 if [ -n "${verbose}" ] ; then
246 echo Keeping vr5400 stuff in $i
247 fi
248 fi
249 done
250else
251 for i in $vr5400_files ; do
252 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
253 if [ -n "${verbose}" ] ; then
254 echo Removing traces of \"vr5400\" from $i...
255 fi
256 cp $i new
257 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
258 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
259 if [ -n "${verbose}" ] ; then
260 echo Caching $i in .Recover...
261 fi
262 mv $i .Recover
263 fi
264 mv new $i
265 fi
266 done
267fi
268
83af2335 269tx19_files="ChangeLog mips16-opc.c mips-dis.c"
d9a52316
GRK
270if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
271 for i in $tx19_files ; do
272 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
273 if [ -n "${verbose}" ] ; then
274 echo Keeping tx19 stuff in $i
275 fi
276 fi
277 done
278else
279 for i in $tx19_files ; do
280 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
281 if [ -n "${verbose}" ] ; then
282 echo Removing traces of \"tx19\" from $i...
283 fi
284 cp $i new
285 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
286 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
287 if [ -n "${verbose}" ] ; then
288 echo Caching $i in .Recover...
289 fi
290 mv $i .Recover
291 fi
292 mv new $i
293 fi
294 done
295fi
296
83af2335 297tx49_files="ChangeLog mips-opc.c mips-dis.c"
0cca41d4
GRK
298if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
299 for i in $tx49_files ; do
300 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
301 if [ -n "${verbose}" ] ; then
302 echo Keeping tx49 stuff in $i
303 fi
304 fi
305 done
306else
307 for i in $tx49_files ; do
308 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
309 if [ -n "${verbose}" ] ; then
310 echo Removing traces of \"tx49\" from $i...
311 fi
312 cp $i new
313 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
314 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
315 if [ -n "${verbose}" ] ; then
316 echo Caching $i in .Recover...
317 fi
318 mv $i .Recover
319 fi
320 mv new $i
321 fi
322 done
323fi
324
a3d2e13b 325tic80_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
6357e7f6
FF
326if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
327 for i in $tic80_files ; do
328 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
329 if [ -n "${verbose}" ] ; then
330 echo Keeping tic80 stuff in $i
331 fi
332 fi
333 done
334else
335 for i in $tic80_files ; do
336 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
337 if [ -n "${verbose}" ] ; then
338 echo Removing traces of \"tic80\" from $i...
339 fi
340 cp $i new
341 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
342 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
343 if [ -n "${verbose}" ] ; then
344 echo Caching $i in .Recover...
345 fi
346 mv $i .Recover
347 fi
348 mv new $i
349 fi
350 done
351fi
352
3b12e2d3
C
353coldfire_files="ChangeLog m68k-opc.c"
354if ( echo $* | grep keep\-coldfire > /dev/null ) ; then
355 for i in $coldfire_files ; do
356 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
357 if [ -n "${verbose}" ] ; then
358 echo Keeping coldfire stuff in $i
359 fi
360 fi
361 done
362else
363 for i in $coldfire_files ; do
364 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
365 if [ -n "${verbose}" ] ; then
366 echo Removing traces of \"coldfire\" from $i...
367 fi
368 cp $i new
369 sed '/start\-sanitize\-coldfire/,/end-\sanitize\-coldfire/d' < $i > new
370 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
371 if [ -n "${verbose}" ] ; then
372 echo Caching $i in .Recover...
373 fi
374 mv $i .Recover
375 fi
376 mv new $i
377 fi
378 done
379fi
6d1e1ee8 380
bf5ac1b8
JR
381if [ -n "${verbose}" ] ; then
382 echo Processing \"sh4\"...
383fi
384
385sh4_files="ChangeLog sh-opc.h sh-dis.c"
386if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
387 for i in $sh4_files ; do
388 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
389 if [ -n "${verbose}" ] ; then
390 echo Keeping sh4 stuff in $i
391 fi
392 fi
393 done
394else
395 for i in $sh4_files ; do
396 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
397 if [ -n "${verbose}" ] ; then
398 echo Removing traces of \"sh4\" from $i...
399 fi
400 cp $i new
401 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
402 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
403 if [ -n "${verbose}" ] ; then
404 echo Caching $i in .Recover...
405 fi
406 mv $i .Recover
407 fi
408 mv new $i
409 fi
410 done
411fi
412
37130f11 413sky_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c mips-dis.c"
80c396f6
DE
414if ( echo $* | grep keep\-sky > /dev/null ) ; then
415 for i in $sky_files ; do
416 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
417 if [ -n "${verbose}" ] ; then
418 echo Keeping sky stuff in $i
419 fi
420 fi
421 done
422else
423 for i in $sky_files ; do
424 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
425 if [ -n "${verbose}" ] ; then
426 echo Removing traces of \"sky\" from $i...
427 fi
428 cp $i new
429 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
430 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
431 if [ -n "${verbose}" ] ; then
432 echo Caching $i in .Recover...
433 fi
434 mv $i .Recover
435 fi
436 mv new $i
437 fi
438 done
439fi
440
c62448bf
NC
441m32rx_files="ChangeLog m32r-opc.c m32r-opc.h m32r-dis.c m32r-asm.c"
442if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
443 for i in $m32rx_files ; do
444 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
445 if [ -n "${verbose}" ] ; then
446 echo Keeping m32rx stuff in $i
447 fi
448 fi
449 done
450else
451 for i in $m32rx_files ; do
452 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
453 if [ -n "${verbose}" ] ; then
454 echo Removing traces of \"m32rx\" from $i...
455 fi
456 cp $i new
0a7fed0d
DE
457 # The PIPE sanitization will be much cleaner with redact.
458 sed -e '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' \
459 -e 's/, PIPE_[A-Z]*//g' < $i > new
c62448bf
NC
460 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
461 if [ -n "${verbose}" ] ; then
462 echo Caching $i in .Recover...
463 fi
464 mv $i .Recover
465 fi
466 mv new $i
467 fi
468 done
469fi
470
5c680afd
MT
471for i in * ; do
472 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
473 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
474 fi
475done
476
a4ccc310 477# End of file.
This page took 0.229709 seconds and 4 git commands to generate.