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