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