Remove sanitized-out Magic Cap support, will never be released
[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 gdbtk_files="README.GDBTK gdbtk.c gdbtcl gdbtcl2 gdbtk.tcl"
19
20 if ( 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
25 else
26 keep_these_too="${gdbtk_files} ${keep_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Keeping ${gdbtk_files}
29 fi
30 fi
31
32 # WinGDB files are not really ready to be part of FSF releases, but
33 # keep them for progressives and such.
34
35 mswin_files="mswin"
36
37 if ( 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
42 else
43 keep_these_too="${mswin_files} ${keep_these_too}"
44 if [ -n "${verbose}" ] ; then
45 echo Keeping ${mswin_files}
46 fi
47 fi
48
49 tic80_files="tic80-tdep.c"
50
51 if ( 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
56 else
57 lose_these_too="${tic80_files} ${lose_these_too}"
58 if [ -n "${verbose}" ] ; then
59 echo Deleting ${tic80_files}
60 fi
61 fi
62
63 d30v_files="d30v-tdep.c"
64
65 if ( 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
70 else
71 lose_these_too="${d30v_files} ${lose_these_too}"
72 if [ -n "${verbose}" ] ; then
73 echo Deleting ${d30v_files}
74 fi
75 fi
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
83 Things-to-keep:
84
85 29k-share
86 COPYING
87 ChangeLog
88 ChangeLog-3.x
89 ChangeLog-9091
90 ChangeLog-92
91 ChangeLog-93
92 ChangeLog-94
93 ChangeLog-95
94 ChangeLog-96
95 Makefile.in
96 NEWS
97 README
98 TODO
99 a29k-tdep.c
100 a68v-nat.c
101 abug-rom.c
102 aclocal.m4
103 acconfig.h
104 alpha-nat.c
105 alpha-tdep.c
106 altos-xdep.c
107 annotate.c
108 annotate.h
109 arc-tdep.c
110 arm-convert.s
111 arm-tdep.c
112 arm-xdep.c
113 bcache.c
114 bcache.h
115 blockframe.c
116 breakpoint.c
117 breakpoint.h
118 buildsym.c
119 buildsym.h
120 c-exp.y
121 c-lang.c
122 c-lang.h
123 c-typeprint.c
124 c-valprint.c
125 call-cmds.h
126 ch-exp.c
127 ch-lang.c
128 ch-lang.h
129 ch-typeprint.c
130 ch-valprint.c
131 coff-solib.c
132 coff-solib.h
133 coffread.c
134 command.c
135 command.h
136 complaints.c
137 complaints.h
138 config
139 config.in
140 configure
141 configure.host
142 configure.in
143 configure.tgt
144 convex-tdep.c
145 convex-xdep.c
146 copying.awk
147 copying.c
148 core-aout.c
149 core-regset.c
150 core-sol2.c
151 corefile.c
152 corelow.c
153 cp-valprint.c
154 cpu32bug-rom.c
155 cxux-nat.c
156 d10v-tdep.c
157 dbug-rom.c
158 dbxread.c
159 dcache.c
160 dcache.h
161 debugify.h
162 debugify.c
163 defs.h
164 delta68-nat.c
165 demangle.c
166 dink32-rom.c
167 doc
168 dpx2-nat.c
169 dsrec.c
170 dst.h
171 dstread.c
172 dwarf2read.c
173 dwarfread.c
174 elfread.c
175 environ.c
176 environ.h
177 eval.c
178 exec.c
179 exc_request.defs
180 expprint.c
181 expression.h
182 f-exp.y
183 f-lang.c
184 f-lang.h
185 f-typeprint.c
186 f-valprint.c
187 findvar.c
188 fork-child.c
189 frame.h
190 gdb_stat.h
191 gdb_string.h
192 gdb-stabs.h
193 gdb.1
194 gdb.gdb
195 gdba.el
196 gdbcmd.h
197 gdbcore.h
198 gdbinit.in
199 gdbserver
200 gdbthread.h
201 gdbtypes.c
202 gdbtypes.h
203 gnu-nat.c
204 gnu-nat.h
205 gnu-regex.c
206 gnu-regex.h
207 go32-xdep.c
208 gould-tdep.c
209 gould-xdep.c
210 h8300-tdep.c
211 h8500-tdep.c
212 hp300ux-nat.c
213 hppa-tdep.c
214 hppab-nat.c
215 hppah-nat.c
216 hppam3-nat.c
217 hpread.c
218 hpux-thread.c
219 i386-stub.c
220 i386-tdep.c
221 i386aix-nat.c
222 i386b-nat.c
223 i386gnu-nat.c
224 i386ly-tdep.c
225 i386m3-nat.c
226 i386mach-nat.c
227 i386v-nat.c
228 i386v4-nat.c
229 i387-tdep.c
230 i960-tdep.c
231 infcmd.c
232 inferior.h
233 inflow.c
234 infptrace.c
235 infrun.c
236 inftarg.c
237 irix4-nat.c
238 irix5-nat.c
239 isi-xdep.c
240 jv-exp.y
241 jv-lang.c
242 jv-lang.h
243 jv-valprint.c
244 jv-typeprint.c
245 kdb-start.c
246 language.c
247 language.h
248 lynx-nat.c
249 m2-exp.y
250 m2-lang.c
251 m2-lang.h
252 m2-typeprint.c
253 m2-valprint.c
254 m3-nat.c
255 m32r-rom.c
256 m32r-stub.c
257 m32r-tdep.c
258 m68k-stub.c
259 m68k-tdep.c
260 m68knbsd-nat.c
261 m88k-nat.c
262 m88k-tdep.c
263 mac-defs.h
264 mac-xdep.c
265 mac-gdb.r
266 mac-nat.c
267 main.c
268 maint.c
269 mdebugread.c
270 mem-break.c
271 minimon.h
272 minsyms.c
273 mips-nat.c
274 mips-tdep.c
275 mipsm3-nat.c
276 mipsv4-nat.c
277 mipsread.c
278 mn10200-tdep.c
279 mn10300-tdep.c
280 mon960-rom.c
281 monitor.h
282 monitor.c
283 mpw-config.in
284 mpw-make.sed
285 msg.defs
286 msg_reply.defs
287 news-xdep.c
288 nindy-share
289 nindy-tdep.c
290 nlm
291 nlmread.c
292 notify.defs
293 ns32k-tdep.c
294 ns32km3-nat.c
295 objfiles.c
296 objfiles.h
297 ocd.c
298 ocd.h
299 op50-rom.c
300 os9kread.c
301 osf-share
302 osfsolib.c
303 parse.c
304 parser-defs.h
305 partial-stab.h
306 ppcbug-rom.c
307 ppc-bdm.c
308 printcmd.c
309 process_reply.defs
310 procfs.c
311 ptx4-nat.c
312 pyr-tdep.c
313 pyr-xdep.c
314 remote-adapt.c
315 remote-array.c
316 remote-bug.c
317 remote-e7000.c
318 remote-eb.c
319 remote-es.c
320 remote-est.c
321 remote-hms.c
322 remote-mips.c
323 remote-mm.c
324 remote-nindy.c
325 remote-nrom.c
326 remote-os9k.c
327 remote-rdp.c
328 remote-sds.c
329 remote-sim.c
330 remote-st.c
331 remote-udi.c
332 remote-utils.c
333 remote-utils.h
334 remote-vx.c
335 remote-vx29k.c
336 remote-vx68.c
337 remote-vx960.c
338 remote-vxmips.c
339 remote-vxsparc.c
340 remote.c
341 reply_mig_hack.awk
342 rs6000-nat.c
343 rs6000-tdep.c
344 rom68k-rom.c
345 saber.suppress
346 scm-exp.c
347 scm-lang.c
348 scm-lang.h
349 scm-tags.h
350 scm-valprint.c
351 ser-e7kpc.c
352 ser-go32.c
353 ser-mac.c
354 ser-ocd.c
355 ser-tcp.c
356 ser-unix.c
357 serial.c
358 serial.h
359 sh-stub.c
360 sh-tdep.c
361 sh3-rom.c
362 signals.h
363 sol-thread.c
364 solib.c
365 solib.h
366 somread.c
367 somsolib.c
368 somsolib.h
369 source.c
370 sparc-nat.c
371 sparc-stub.c
372 sparc-tdep.c
373 sparcl-stub.c
374 sparcl-tdep.c
375 sparclet-rom.c
376 sparclet-stub.c
377 srec.h
378 stabsread.c
379 stabsread.h
380 stack.c
381 standalone.c
382 stop-gdb.c
383 stuff.c
384 sun3-nat.c
385 sun386-nat.c
386 symfile.c
387 symfile.h
388 symm-nat.c
389 symm-tdep.c
390 symmisc.c
391 symtab.c
392 symtab.h
393 tahoe-tdep.c
394 target.c
395 target.h
396 terminal.h
397 testsuite
398 thread.c
399 top.c
400 top.h
401 typeprint.c
402 typeprint.h
403 ultra3-nat.c
404 ultra3-xdep.c
405 umax-xdep.c
406 utils.c
407 v850-tdep.c
408 v850ice.c
409 valarith.c
410 valops.c
411 valprint.c
412 valprint.h
413 value.h
414 values.c
415 vax-tdep.c
416 vx-share
417 w65-tdep.c
418 w89k-rom.c
419 win32-nat.c
420 xcoffread.c
421 xcoffsolib.c
422 xcoffsolib.h
423 xmodem.c
424 xmodem.h
425 z8k-tdep.c
426
427 # Things which are explicitly *not* kept, for now.
428
429 Things-to-lose:
430
431 HOW_TO_RELEASE
432 ser-go32-para.c
433
434 Do-last:
435
436 # Don't try to clean directories here, as the 'mv' command will fail.
437 # Also, grep fails on NFS mounted directories.
438 if ( 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
452 else
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
466 fi
467
468 if ( 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
476 else
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
493 fi
494
495 if ( 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
503 else
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
520 fi
521
522 if ( 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
530 else
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
547 fi
548
549 if ( 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
557 else
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
574 fi
575
576 if ( 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
584 else
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
601 fi
602
603 if ( 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
611 else
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
628 fi
629
630 if ( 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
638 else
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
655 fi
656
657 for 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
661 done
662
663 #
664 # End of file.
This page took 0.042816 seconds and 4 git commands to generate.