* Add gdbtcl2 to gdbtk_files.
[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 gdbtcl2 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 dink32-rom.c
194 doc
195 dpx2-nat.c
196 dsrec.c
197 dst.h
198 dstread.c
199 dwarf2read.c
200 dwarfread.c
201 elfread.c
202 environ.c
203 environ.h
204 eval.c
205 exec.c
206 exc_request.defs
207 expprint.c
208 expression.h
209 f-exp.y
210 f-lang.c
211 f-lang.h
212 f-typeprint.c
213 f-valprint.c
214 findvar.c
215 fork-child.c
216 frame.h
217 gdb_stat.h
218 gdb_string.h
219 gdb-stabs.h
220 gdb.1
221 gdb.gdb
222 gdba.el
223 gdbcmd.h
224 gdbcore.h
225 gdbinit.in
226 gdbserver
227 gdbthread.h
228 gdbtypes.c
229 gdbtypes.h
230 gnu-nat.c
231 gnu-nat.h
232 gnu-regex.c
233 gnu-regex.h
234 go32-xdep.c
235 gould-tdep.c
236 gould-xdep.c
237 h8300-tdep.c
238 h8500-tdep.c
239 hp300ux-nat.c
240 hppa-tdep.c
241 hppab-nat.c
242 hppah-nat.c
243 hppam3-nat.c
244 hpread.c
245 hpux-thread.c
246 i386-stub.c
247 i386-tdep.c
248 i386aix-nat.c
249 i386b-nat.c
250 i386gnu-nat.c
251 i386ly-tdep.c
252 i386m3-nat.c
253 i386mach-nat.c
254 i386v-nat.c
255 i386v4-nat.c
256 i387-tdep.c
257 i960-tdep.c
258 infcmd.c
259 inferior.h
260 inflow.c
261 infptrace.c
262 infrun.c
263 inftarg.c
264 irix4-nat.c
265 irix5-nat.c
266 isi-xdep.c
267 jv-exp.y
268 jv-lang.c
269 jv-lang.h
270 jv-valprint.c
271 jv-typeprint.c
272 kdb-start.c
273 language.c
274 language.h
275 lynx-nat.c
276 m2-exp.y
277 m2-lang.c
278 m2-lang.h
279 m2-typeprint.c
280 m2-valprint.c
281 m3-nat.c
282 m32r-rom.c
283 m32r-stub.c
284 m32r-tdep.c
285 m68k-stub.c
286 m68k-tdep.c
287 m68knbsd-nat.c
288 m88k-nat.c
289 m88k-tdep.c
290 mac-defs.h
291 mac-xdep.c
292 mac-gdb.r
293 mac-nat.c
294 main.c
295 maint.c
296 mdebugread.c
297 mem-break.c
298 minimon.h
299 minsyms.c
300 mips-nat.c
301 mips-tdep.c
302 mipsm3-nat.c
303 mipsv4-nat.c
304 mipsread.c
305 mn10200-tdep.c
306 mn10300-tdep.c
307 mon960-rom.c
308 monitor.h
309 monitor.c
310 mpw-config.in
311 mpw-make.sed
312 msg.defs
313 msg_reply.defs
314 news-xdep.c
315 nindy-share
316 nindy-tdep.c
317 nlm
318 nlmread.c
319 notify.defs
320 ns32k-tdep.c
321 ns32km3-nat.c
322 objfiles.c
323 objfiles.h
324 ocd.c
325 ocd.h
326 op50-rom.c
327 os9kread.c
328 osf-share
329 osfsolib.c
330 parse.c
331 parser-defs.h
332 partial-stab.h
333 ppcbug-rom.c
334 ppc-bdm.c
335 printcmd.c
336 process_reply.defs
337 procfs.c
338 ptx4-nat.c
339 pyr-tdep.c
340 pyr-xdep.c
341 remote-adapt.c
342 remote-array.c
343 remote-bug.c
344 remote-e7000.c
345 remote-eb.c
346 remote-es.c
347 remote-est.c
348 remote-hms.c
349 remote-mips.c
350 remote-mm.c
351 remote-nindy.c
352 remote-nrom.c
353 remote-os9k.c
354 remote-rdp.c
355 remote-sds.c
356 remote-sim.c
357 remote-st.c
358 remote-udi.c
359 remote-utils.c
360 remote-utils.h
361 remote-vx.c
362 remote-vx29k.c
363 remote-vx68.c
364 remote-vx960.c
365 remote-vxmips.c
366 remote-vxsparc.c
367 remote.c
368 reply_mig_hack.awk
369 rs6000-nat.c
370 rs6000-tdep.c
371 rom68k-rom.c
372 saber.suppress
373 scm-exp.c
374 scm-lang.c
375 scm-lang.h
376 scm-tags.h
377 scm-valprint.c
378 ser-e7kpc.c
379 ser-go32.c
380 ser-mac.c
381 ser-ocd.c
382 ser-tcp.c
383 ser-unix.c
384 serial.c
385 serial.h
386 sh-stub.c
387 sh-tdep.c
388 sh3-rom.c
389 signals.h
390 sol-thread.c
391 solib.c
392 solib.h
393 somread.c
394 somsolib.c
395 somsolib.h
396 source.c
397 sparc-nat.c
398 sparc-stub.c
399 sparc-tdep.c
400 sparcl-stub.c
401 sparcl-tdep.c
402 sparclet-rom.c
403 sparclet-stub.c
404 srec.h
405 stabsread.c
406 stabsread.h
407 stack.c
408 standalone.c
409 stop-gdb.c
410 stuff.c
411 sun3-nat.c
412 sun386-nat.c
413 symfile.c
414 symfile.h
415 symm-nat.c
416 symm-tdep.c
417 symmisc.c
418 symtab.c
419 symtab.h
420 tahoe-tdep.c
421 target.c
422 target.h
423 terminal.h
424 testsuite
425 thread.c
426 top.c
427 top.h
428 typeprint.c
429 typeprint.h
430 ultra3-nat.c
431 ultra3-xdep.c
432 umax-xdep.c
433 utils.c
434 valarith.c
435 valops.c
436 valprint.c
437 valprint.h
438 value.h
439 values.c
440 vax-tdep.c
441 vx-share
442 w65-tdep.c
443 w89k-rom.c
444 win32-nat.c
445 xcoffread.c
446 xcoffsolib.c
447 xcoffsolib.h
448 xmodem.c
449 xmodem.h
450 z8k-tdep.c
451
452 # Things which are explicitly *not* kept, for now.
453
454 Things-to-lose:
455
456 ser-go32-para.c
457 HOW_TO_RELEASE
458
459 Do-last:
460
461 # Don't try to clean directories here, as the 'mv' command will fail.
462 # Also, grep fails on NFS mounted directories.
463 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
464 echo Catering to RMS by removing traces of \"gdbtk\"...
465 for i in * ; do
466 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
467 echo Removing traces of \"gdbtk\" out of $i...
468 cp $i new
469 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
470 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
471 echo Caching $i in .Recover...
472 mv $i .Recover
473 fi
474 mv new $i
475 fi
476 done
477 else
478 echo Leaving \"gdbtk\" in the sources...
479 for i in * ; do
480 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
481 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
482 cp $i new
483 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
484 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
485 echo Caching $i in .Recover...
486 mv $i .Recover
487 fi
488 mv new $i
489 fi
490 done
491 fi
492
493 arc_files="configure.tgt ChangeLog-95"
494
495 if ( echo $* | grep keep\-arc > /dev/null ) ; then
496 for i in $arc_files ; do
497 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
498 if [ -n "${verbose}" ] ; then
499 echo Keeping arc stuff in $i
500 fi
501 fi
502 done
503 else
504 for i in $arc_files ; do
505 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
506 if [ -n "${verbose}" ] ; then
507 echo Removing traces of \"arc\" from $i...
508 fi
509 cp $i new
510 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
520 fi
521
522 if ( echo $* | grep keep\-gm > /dev/null ) ; then
523 for i in * ; do
524 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
525 if [ -n "${verbose}" ] ; then
526 echo Keeping gm stuff in $i
527 fi
528 fi
529 done
530 else
531 for i in * ; do
532 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
533 if [ -n "${verbose}" ] ; then
534 echo Removing traces of \"gm\" from $i...
535 fi
536 cp $i new
537 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/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
547 fi
548
549 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
550 for i in * ; do
551 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
552 if [ -n "${verbose}" ] ; then
553 echo Keeping v850 stuff in $i
554 fi
555 fi
556 done
557 else
558 for i in * ; do
559 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
560 if [ -n "${verbose}" ] ; then
561 echo Removing traces of \"v850\" from $i...
562 fi
563 cp $i new
564 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/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
574 fi
575
576 if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
577 for i in * ; do
578 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
579 if [ -n "${verbose}" ] ; then
580 echo Keeping sh4 stuff in $i
581 fi
582 fi
583 done
584 else
585 for i in * ; do
586 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
587 if [ -n "${verbose}" ] ; then
588 echo Removing traces of \"sh4\" from $i...
589 fi
590 cp $i new
591 sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/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
601 fi
602
603 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
604 for i in * ; do
605 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
606 if [ -n "${verbose}" ] ; then
607 echo Keeping r5900 stuff in $i
608 fi
609 fi
610 done
611 else
612 for i in * ; do
613 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
614 if [ -n "${verbose}" ] ; then
615 echo Removing traces of \"r5900\" from $i...
616 fi
617 cp $i new
618 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/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
628 fi
629
630 if ( echo $* | grep keep\-tx39 > /dev/null ) ; then
631 for i in * ; do
632 if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then
633 if [ -n "${verbose}" ] ; then
634 echo Keeping tx39 stuff in $i
635 fi
636 fi
637 done
638 else
639 for i in * ; do
640 if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then
641 if [ -n "${verbose}" ] ; then
642 echo Removing traces of \"tx39\" from $i...
643 fi
644 cp $i new
645 sed '/start\-sanitize\-tx39/,/end-\sanitize\-tx39/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
655 fi
656
657 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
658 for i in * ; do
659 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
660 if [ -n "${verbose}" ] ; then
661 echo Keeping tic80 stuff in $i
662 fi
663 fi
664 done
665 else
666 for i in * ; do
667 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
668 if [ -n "${verbose}" ] ; then
669 echo Removing traces of \"tic80\" from $i...
670 fi
671 cp $i new
672 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
673 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
674 if [ -n "${verbose}" ] ; then
675 echo Caching $i in .Recover...
676 fi
677 mv $i .Recover
678 fi
679 mv new $i
680 fi
681 done
682 fi
683
684 for i in * ; do
685 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
686 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
687 fi
688 done
689
690 #
691 # End of file.
This page took 0.044502 seconds and 5 git commands to generate.