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