always keep tracepoint.{c,h}
[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 tracepoint.c
402 tracepoint.h
403 typeprint.c
404 typeprint.h
405 ultra3-nat.c
406 ultra3-xdep.c
407 umax-xdep.c
408 utils.c
409 v850-tdep.c
410 v850ice.c
411 valarith.c
412 valops.c
413 valprint.c
414 valprint.h
415 value.h
416 values.c
417 vax-tdep.c
418 vx-share
419 w65-tdep.c
420 w89k-rom.c
421 win32-nat.c
422 xcoffread.c
423 xcoffsolib.c
424 xcoffsolib.h
425 xmodem.c
426 xmodem.h
427 z8k-tdep.c
428
429 # Things which are explicitly *not* kept, for now.
430
431 Things-to-lose:
432
433 HOW_TO_RELEASE
434
435 Do-last:
436
437 # Don't try to clean directories here, as the 'mv' command will fail.
438 # Also, grep fails on NFS mounted directories.
439 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
440 echo Catering to RMS by removing traces of \"gdbtk\"...
441 for i in * ; do
442 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
443 echo Removing traces of \"gdbtk\" out of $i...
444 cp $i new
445 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
446 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
447 echo Caching $i in .Recover...
448 mv $i .Recover
449 fi
450 mv new $i
451 fi
452 done
453 else
454 echo Leaving \"gdbtk\" in the sources...
455 for i in * ; do
456 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
457 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
458 cp $i new
459 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
460 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
461 echo Caching $i in .Recover...
462 mv $i .Recover
463 fi
464 mv new $i
465 fi
466 done
467 fi
468
469 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
470 for i in * ; do
471 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
472 if [ -n "${verbose}" ] ; then
473 echo Keeping v850e stuff in $i
474 fi
475 fi
476 done
477 else
478 for i in * ; do
479 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
480 if [ -n "${verbose}" ] ; then
481 echo Removing traces of \"v850e\" from $i...
482 fi
483 cp $i new
484 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
485 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
486 if [ -n "${verbose}" ] ; then
487 echo Caching $i in .Recover...
488 fi
489 mv $i .Recover
490 fi
491 mv new $i
492 fi
493 done
494 fi
495
496 if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
497 for i in * ; do
498 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
499 if [ -n "${verbose}" ] ; then
500 echo Keeping sh4 stuff in $i
501 fi
502 fi
503 done
504 else
505 for i in * ; do
506 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
507 if [ -n "${verbose}" ] ; then
508 echo Removing traces of \"sh4\" from $i...
509 fi
510 cp $i new
511 sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new
512 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
513 if [ -n "${verbose}" ] ; then
514 echo Caching $i in .Recover...
515 fi
516 mv $i .Recover
517 fi
518 mv new $i
519 fi
520 done
521 fi
522
523 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
524 for i in * ; do
525 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
526 if [ -n "${verbose}" ] ; then
527 echo Keeping r5900 stuff in $i
528 fi
529 fi
530 done
531 else
532 for i in * ; do
533 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
534 if [ -n "${verbose}" ] ; then
535 echo Removing traces of \"r5900\" from $i...
536 fi
537 cp $i new
538 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
539 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
540 if [ -n "${verbose}" ] ; then
541 echo Caching $i in .Recover...
542 fi
543 mv $i .Recover
544 fi
545 mv new $i
546 fi
547 done
548 fi
549
550 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
551 for i in * ; do
552 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
553 if [ -n "${verbose}" ] ; then
554 echo Keeping tx19 stuff in $i
555 fi
556 fi
557 done
558 else
559 for i in * ; do
560 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
561 if [ -n "${verbose}" ] ; then
562 echo Removing traces of \"tx19\" from $i...
563 fi
564 cp $i new
565 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
566 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
567 if [ -n "${verbose}" ] ; then
568 echo Caching $i in .Recover...
569 fi
570 mv $i .Recover
571 fi
572 mv new $i
573 fi
574 done
575 fi
576
577 if ( echo $* | grep keep\-tx39 > /dev/null ) ; then
578 for i in * ; do
579 if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then
580 if [ -n "${verbose}" ] ; then
581 echo Keeping tx39 stuff in $i
582 fi
583 fi
584 done
585 else
586 for i in * ; do
587 if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then
588 if [ -n "${verbose}" ] ; then
589 echo Removing traces of \"tx39\" from $i...
590 fi
591 cp $i new
592 sed '/start\-sanitize\-tx39/,/end-\sanitize\-tx39/d' < $i > new
593 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
594 if [ -n "${verbose}" ] ; then
595 echo Caching $i in .Recover...
596 fi
597 mv $i .Recover
598 fi
599 mv new $i
600 fi
601 done
602 fi
603
604 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
605 for i in * ; do
606 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
607 if [ -n "${verbose}" ] ; then
608 echo Keeping tx49 stuff in $i
609 fi
610 fi
611 done
612 else
613 for i in * ; do
614 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
615 if [ -n "${verbose}" ] ; then
616 echo Removing traces of \"tx49\" from $i...
617 fi
618 cp $i new
619 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
620 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
621 if [ -n "${verbose}" ] ; then
622 echo Caching $i in .Recover...
623 fi
624 mv $i .Recover
625 fi
626 mv new $i
627 fi
628 done
629 fi
630
631 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
632 for i in * ; do
633 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
634 if [ -n "${verbose}" ] ; then
635 echo Keeping vr5400 stuff in $i
636 fi
637 fi
638 done
639 else
640 for i in * ; do
641 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
642 if [ -n "${verbose}" ] ; then
643 echo Removing traces of \"vr5400\" from $i...
644 fi
645 cp $i new
646 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
647 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
648 if [ -n "${verbose}" ] ; then
649 echo Caching $i in .Recover...
650 fi
651 mv $i .Recover
652 fi
653 mv new $i
654 fi
655 done
656 fi
657
658 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
659 for i in * ; do
660 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
661 if [ -n "${verbose}" ] ; then
662 echo Keeping tic80 stuff in $i
663 fi
664 fi
665 done
666 else
667 for i in * ; do
668 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
669 if [ -n "${verbose}" ] ; then
670 echo Removing traces of \"tic80\" from $i...
671 fi
672 cp $i new
673 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
674 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
675 if [ -n "${verbose}" ] ; then
676 echo Caching $i in .Recover...
677 fi
678 mv $i .Recover
679 fi
680 mv new $i
681 fi
682 done
683 fi
684
685 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
686 for i in * ; do
687 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
688 if [ -n "${verbose}" ] ; then
689 echo Keeping d30v stuff in $i
690 fi
691 fi
692 done
693 else
694 for i in * ; do
695 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
696 if [ -n "${verbose}" ] ; then
697 echo Removing traces of \"d30v\" from $i...
698 fi
699 cp $i new
700 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
701 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
702 if [ -n "${verbose}" ] ; then
703 echo Caching $i in .Recover...
704 fi
705 mv $i .Recover
706 fi
707 mv new $i
708 fi
709 done
710 fi
711
712 for i in * ; do
713 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
714 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
715 fi
716 done
717
718 #
719 # End of file.
This page took 0.047143 seconds and 5 git commands to generate.