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