* gdb.disasm/mn10300.exp: Fix buglets in "other" tests.
[deliverable/binutils-gdb.git] / gdb / .Sanitize
1 # .Sanitize for devo/gdb.
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-tdep.c remote-arc.c"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${arc_files}
24 fi
25 else
26 lose_these_too="${arc_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${arc_files}
29 fi
30 fi
31
32 gdbtk_files="README.GDBTK gdbtk.c gdbtcl gdbtk.tcl"
33
34 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
35 lose_these_too="${gdbtk_files} ${lose_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Deleting ${gdbtk_files}
38 fi
39 else
40 keep_these_too="${gdbtk_files} ${keep_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Keeping ${gdbtk_files}
43 fi
44 fi
45
46 # WinGDB files are not really ready to be part of FSF releases, but
47 # keep them for progressives and such.
48
49 mswin_files="mswin"
50
51 if ( echo $* | grep lose\-mswin > /dev/null ) ; then
52 lose_these_too="${mswin_files} ${lose_these_too}"
53 if [ -n "${verbose}" ] ; then
54 echo Deleting ${mswin_files}
55 fi
56 else
57 keep_these_too="${mswin_files} ${keep_these_too}"
58 if [ -n "${verbose}" ] ; then
59 echo Keeping ${mswin_files}
60 fi
61 fi
62
63 gm_files="gmagic.c gmagic.h"
64
65 if ( echo $* | grep keep\-gm > /dev/null ) ; then
66 keep_these_too="${gm_files} ${keep_these_too}"
67 if [ -n "${verbose}" ] ; then
68 echo Keeping ${gm_files}
69 fi
70 else
71 lose_these_too="${gm_files} ${lose_these_too}"
72 if [ -n "${verbose}" ] ; then
73 echo Deleting ${gm_files}
74 fi
75 fi
76
77 tic80_files="tic80-tdep.c"
78
79 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
80 keep_these_too="${tic80_files} ${keep_these_too}"
81 if [ -n "${verbose}" ] ; then
82 echo Keeping ${tic80_files}
83 fi
84 else
85 lose_these_too="${tic80_files} ${lose_these_too}"
86 if [ -n "${verbose}" ] ; then
87 echo Deleting ${tic80_files}
88 fi
89 fi
90
91 v850_files="v850ice.c v850-tdep.c"
92
93 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
94 keep_these_too="${v850_files} ${keep_these_too}"
95 if [ -n "${verbose}" ] ; then
96 echo Keeping ${v850_files}
97 fi
98 else
99 lose_these_too="${v850_files} ${lose_these_too}"
100 if [ -n "${verbose}" ] ; then
101 echo Deleting ${v850_files}
102 fi
103 fi
104
105 # All files listed between the "Things-to-keep:" line and the
106 # "Files-to-sed:" line will be kept. All other files will be removed.
107 # Directories listed in this section will have their own Sanitize
108 # called. Directories not listed will be removed in their entirety
109 # with rm -rf.
110
111 Things-to-keep:
112
113 29k-share
114 COPYING
115 ChangeLog
116 ChangeLog-3.x
117 ChangeLog-9091
118 ChangeLog-92
119 ChangeLog-93
120 ChangeLog-94
121 ChangeLog-95
122 ChangeLog-96
123 Makefile.in
124 NEWS
125 README
126 TODO
127 a29k-tdep.c
128 a68v-nat.c
129 abug-rom.c
130 aclocal.m4
131 acconfig.h
132 alpha-nat.c
133 alpha-tdep.c
134 altos-xdep.c
135 annotate.c
136 annotate.h
137 arm-convert.s
138 arm-tdep.c
139 arm-xdep.c
140 bcache.c
141 bcache.h
142 blockframe.c
143 breakpoint.c
144 breakpoint.h
145 buildsym.c
146 buildsym.h
147 c-exp.y
148 c-lang.c
149 c-lang.h
150 c-typeprint.c
151 c-valprint.c
152 call-cmds.h
153 ch-exp.c
154 ch-lang.c
155 ch-lang.h
156 ch-typeprint.c
157 ch-valprint.c
158 coff-solib.c
159 coff-solib.h
160 coffread.c
161 command.c
162 command.h
163 complaints.c
164 complaints.h
165 config
166 config.in
167 configure
168 configure.host
169 configure.in
170 configure.tgt
171 convex-tdep.c
172 convex-xdep.c
173 copying.awk
174 copying.c
175 core-aout.c
176 core-regset.c
177 core-sol2.c
178 corefile.c
179 corelow.c
180 cp-valprint.c
181 cpu32bug-rom.c
182 cxux-nat.c
183 d10v-tdep.c
184 dbug-rom.c
185 dbxread.c
186 dcache.c
187 dcache.h
188 debugify.h
189 debugify.c
190 defs.h
191 delta68-nat.c
192 demangle.c
193 doc
194 dpx2-nat.c
195 dsrec.c
196 dst.h
197 dstread.c
198 dwarf2read.c
199 dwarfread.c
200 elfread.c
201 environ.c
202 environ.h
203 eval.c
204 exec.c
205 exc_request.defs
206 expprint.c
207 expression.h
208 f-exp.y
209 f-lang.c
210 f-lang.h
211 f-typeprint.c
212 f-valprint.c
213 findvar.c
214 fork-child.c
215 frame.h
216 gdb_stat.h
217 gdb_string.h
218 gdb-stabs.h
219 gdb.1
220 gdb.gdb
221 gdba.el
222 gdbcmd.h
223 gdbcore.h
224 gdbinit.in
225 gdbserver
226 gdbthread.h
227 gdbtypes.c
228 gdbtypes.h
229 gnu-nat.c
230 gnu-nat.h
231 gnu-regex.c
232 gnu-regex.h
233 go32-xdep.c
234 gould-tdep.c
235 gould-xdep.c
236 h8300-tdep.c
237 h8500-tdep.c
238 hp300ux-nat.c
239 hppa-tdep.c
240 hppab-nat.c
241 hppah-nat.c
242 hppam3-nat.c
243 hpread.c
244 hpux-thread.c
245 i386-stub.c
246 i386-tdep.c
247 i386aix-nat.c
248 i386b-nat.c
249 i386gnu-nat.c
250 i386ly-tdep.c
251 i386m3-nat.c
252 i386mach-nat.c
253 i386v-nat.c
254 i386v4-nat.c
255 i387-tdep.c
256 i960-tdep.c
257 infcmd.c
258 inferior.h
259 inflow.c
260 infptrace.c
261 infrun.c
262 inftarg.c
263 irix4-nat.c
264 irix5-nat.c
265 isi-xdep.c
266 kdb-start.c
267 language.c
268 language.h
269 lynx-nat.c
270 m2-exp.y
271 m2-lang.c
272 m2-lang.h
273 m2-typeprint.c
274 m2-valprint.c
275 m3-nat.c
276 m32r-rom.c
277 m32r-stub.c
278 m32r-tdep.c
279 m68k-stub.c
280 m68k-tdep.c
281 m68knbsd-nat.c
282 m88k-nat.c
283 m88k-tdep.c
284 mac-defs.h
285 mac-xdep.c
286 mac-gdb.r
287 mac-nat.c
288 main.c
289 maint.c
290 mdebugread.c
291 mem-break.c
292 minimon.h
293 minsyms.c
294 mips-nat.c
295 mips-tdep.c
296 mipsm3-nat.c
297 mipsv4-nat.c
298 mipsread.c
299 mn10200-tdep.c
300 mn10300-tdep.c
301 mon960-rom.c
302 monitor.h
303 monitor.c
304 mpw-config.in
305 mpw-make.sed
306 msg.defs
307 msg_reply.defs
308 news-xdep.c
309 nindy-share
310 nindy-tdep.c
311 nlm
312 nlmread.c
313 notify.defs
314 ns32k-tdep.c
315 ns32km3-nat.c
316 objfiles.c
317 objfiles.h
318 op50-rom.c
319 os9kread.c
320 osf-share
321 osfsolib.c
322 parse.c
323 parser-defs.h
324 partial-stab.h
325 ppcbug-rom.c
326 printcmd.c
327 process_reply.defs
328 procfs.c
329 ptx4-nat.c
330 pyr-tdep.c
331 pyr-xdep.c
332 remote-adapt.c
333 remote-array.c
334 remote-bug.c
335 remote-e7000.c
336 remote-eb.c
337 remote-es.c
338 remote-est.c
339 remote-hms.c
340 remote-mips.c
341 remote-mm.c
342 remote-nindy.c
343 remote-nrom.c
344 remote-os9k.c
345 remote-pa.c
346 remote-rdp.c
347 remote-sim.c
348 remote-st.c
349 remote-udi.c
350 remote-utils.c
351 remote-utils.h
352 remote-vx.c
353 remote-vx29k.c
354 remote-vx68.c
355 remote-vx960.c
356 remote-vxmips.c
357 remote-vxsparc.c
358 remote-wiggler.c
359 remote.c
360 reply_mig_hack.awk
361 rs6000-nat.c
362 rs6000-tdep.c
363 rom68k-rom.c
364 saber.suppress
365 scm-exp.c
366 scm-lang.c
367 scm-lang.h
368 scm-tags.h
369 scm-valprint.c
370 ser-e7kpc.c
371 ser-go32.c
372 ser-mac.c
373 ser-tcp.c
374 ser-unix.c
375 serial.c
376 serial.h
377 sh-stub.c
378 sh-tdep.c
379 sh3-rom.c
380 signals.h
381 sol-thread.c
382 solib.c
383 solib.h
384 somread.c
385 somsolib.c
386 somsolib.h
387 source.c
388 sparc-nat.c
389 sparc-stub.c
390 sparc-tdep.c
391 sparcl-stub.c
392 sparcl-tdep.c
393 sparclet-rom.c
394 sparclet-stub.c
395 srec.h
396 stabsread.c
397 stabsread.h
398 stack.c
399 standalone.c
400 stop-gdb.c
401 stuff.c
402 sun3-nat.c
403 sun386-nat.c
404 symfile.c
405 symfile.h
406 symm-nat.c
407 symm-tdep.c
408 symmisc.c
409 symtab.c
410 symtab.h
411 tahoe-tdep.c
412 target.c
413 target.h
414 terminal.h
415 testsuite
416 thread.c
417 top.c
418 top.h
419 typeprint.c
420 typeprint.h
421 ultra3-nat.c
422 ultra3-xdep.c
423 umax-xdep.c
424 utils.c
425 valarith.c
426 valops.c
427 valprint.c
428 valprint.h
429 value.h
430 values.c
431 vax-tdep.c
432 vx-share
433 w65-tdep.c
434 w89k-rom.c
435 win32-nat.c
436 xcoffread.c
437 xcoffsolib.c
438 xcoffsolib.h
439 xmodem.c
440 xmodem.h
441 z8k-tdep.c
442
443 # Things which are explicitly *not* kept, for now.
444
445 Things-to-lose:
446
447 ser-go32-para.c
448 HOW_TO_RELEASE
449
450 Do-last:
451
452 # Don't try to clean directories here, as the 'mv' command will fail.
453 # Also, grep fails on NFS mounted directories.
454 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
455 echo Catering to RMS by removing traces of \"gdbtk\"...
456 for i in * ; do
457 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
458 echo Removing traces of \"gdbtk\" out of $i...
459 cp $i new
460 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
461 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
462 echo Caching $i in .Recover...
463 mv $i .Recover
464 fi
465 mv new $i
466 fi
467 done
468 else
469 echo Leaving \"gdbtk\" in the sources...
470 for i in * ; do
471 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
472 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
473 cp $i new
474 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
475 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
476 echo Caching $i in .Recover...
477 mv $i .Recover
478 fi
479 mv new $i
480 fi
481 done
482 fi
483
484 arc_files="configure.tgt ChangeLog-95"
485
486 if ( echo $* | grep keep\-arc > /dev/null ) ; then
487 for i in $arc_files ; do
488 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
489 if [ -n "${verbose}" ] ; then
490 echo Keeping arc stuff in $i
491 fi
492 fi
493 done
494 else
495 for i in $arc_files ; do
496 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
497 if [ -n "${verbose}" ] ; then
498 echo Removing traces of \"arc\" from $i...
499 fi
500 cp $i new
501 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
502 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
503 if [ -n "${verbose}" ] ; then
504 echo Caching $i in .Recover...
505 fi
506 mv $i .Recover
507 fi
508 mv new $i
509 fi
510 done
511 fi
512
513 if ( echo $* | grep keep\-gm > /dev/null ) ; then
514 for i in * ; do
515 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
516 if [ -n "${verbose}" ] ; then
517 echo Keeping gm stuff in $i
518 fi
519 fi
520 done
521 else
522 for i in * ; do
523 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
524 if [ -n "${verbose}" ] ; then
525 echo Removing traces of \"gm\" from $i...
526 fi
527 cp $i new
528 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
529 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
530 if [ -n "${verbose}" ] ; then
531 echo Caching $i in .Recover...
532 fi
533 mv $i .Recover
534 fi
535 mv new $i
536 fi
537 done
538 fi
539
540 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
541 for i in * ; do
542 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
543 if [ -n "${verbose}" ] ; then
544 echo Keeping v850 stuff in $i
545 fi
546 fi
547 done
548 else
549 for i in * ; do
550 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
551 if [ -n "${verbose}" ] ; then
552 echo Removing traces of \"v850\" from $i...
553 fi
554 cp $i new
555 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
556 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
557 if [ -n "${verbose}" ] ; then
558 echo Caching $i in .Recover...
559 fi
560 mv $i .Recover
561 fi
562 mv new $i
563 fi
564 done
565 fi
566
567 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
568 for i in * ; do
569 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
570 if [ -n "${verbose}" ] ; then
571 echo Keeping r5900 stuff in $i
572 fi
573 fi
574 done
575 else
576 for i in * ; do
577 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
578 if [ -n "${verbose}" ] ; then
579 echo Removing traces of \"r5900\" from $i...
580 fi
581 cp $i new
582 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
583 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
584 if [ -n "${verbose}" ] ; then
585 echo Caching $i in .Recover...
586 fi
587 mv $i .Recover
588 fi
589 mv new $i
590 fi
591 done
592 fi
593
594 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
595 for i in * ; do
596 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
597 if [ -n "${verbose}" ] ; then
598 echo Keeping tic80 stuff in $i
599 fi
600 fi
601 done
602 else
603 for i in * ; do
604 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
605 if [ -n "${verbose}" ] ; then
606 echo Removing traces of \"tic80\" from $i...
607 fi
608 cp $i new
609 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
610 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
611 if [ -n "${verbose}" ] ; then
612 echo Caching $i in .Recover...
613 fi
614 mv $i .Recover
615 fi
616 mv new $i
617 fi
618 done
619 fi
620
621 for i in * ; do
622 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
623 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
624 fi
625 done
626
627 #
628 # End of file.
This page took 0.061294 seconds and 4 git commands to generate.