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