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