* callback.h: Deleted, moved to ../include.
[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="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"
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 Makefile.in
138 NEWS
139 README
140 TODO
141 a29k-tdep.c
142 a68v-nat.c
143 abug-rom.c
144 aclocal.m4
145 acconfig.h
146 alpha-nat.c
147 alpha-tdep.c
148 altos-xdep.c
149 annotate.c
150 annotate.h
151 arm-convert.s
152 arm-tdep.c
153 arm-xdep.c
154 bcache.c
155 bcache.h
156 blockframe.c
157 breakpoint.c
158 breakpoint.h
159 buildsym.c
160 buildsym.h
161 c-exp.y
162 c-lang.c
163 c-lang.h
164 c-typeprint.c
165 c-valprint.c
166 call-cmds.h
167 ch-exp.c
168 ch-lang.c
169 ch-lang.h
170 ch-typeprint.c
171 ch-valprint.c
172 coff-solib.c
173 coff-solib.h
174 coffread.c
175 command.c
176 command.h
177 complaints.c
178 complaints.h
179 config
180 config.in
181 configure
182 configure.host
183 configure.in
184 configure.tgt
185 convex-tdep.c
186 convex-xdep.c
187 copying.awk
188 copying.c
189 core-aout.c
190 core-regset.c
191 core-sol2.c
192 corefile.c
193 corelow.c
194 cp-valprint.c
195 cpu32bug-rom.c
196 cxux-nat.c
197 dbug-rom.c
198 dbxread.c
199 dcache.c
200 dcache.h
201 defs.h
202 delta68-nat.c
203 demangle.c
204 doc
205 dpx2-nat.c
206 dsrec.c
207 dst.h
208 dstread.c
209 dwarf2read.c
210 dwarfread.c
211 elfread.c
212 environ.c
213 environ.h
214 eval.c
215 exec.c
216 exc_request.defs
217 expprint.c
218 expression.h
219 f-exp.y
220 f-lang.c
221 f-lang.h
222 f-typeprint.c
223 f-valprint.c
224 findvar.c
225 fork-child.c
226 frame.h
227 gdb_stat.h
228 gdb_string.h
229 gdb-stabs.h
230 gdb.1
231 gdb.gdb
232 gdba.el
233 gdbcmd.h
234 gdbcore.h
235 gdbserver
236 gdbthread.h
237 gdbtypes.c
238 gdbtypes.h
239 gnu-nat.c
240 gnu-nat.h
241 gnu-regex.c
242 gnu-regex.h
243 go32-xdep.c
244 gould-tdep.c
245 gould-xdep.c
246 h8300-tdep.c
247 h8500-tdep.c
248 hp300ux-nat.c
249 hppa-tdep.c
250 hppab-nat.c
251 hppah-nat.c
252 hppam3-nat.c
253 hpread.c
254 hpux-thread.c
255 i386-stub.c
256 i386-tdep.c
257 i386aix-nat.c
258 i386b-nat.c
259 i386gnu-nat.c
260 i386ly-tdep.c
261 i386m3-nat.c
262 i386mach-nat.c
263 i386v-nat.c
264 i386v4-nat.c
265 i387-tdep.c
266 i960-tdep.c
267 infcmd.c
268 inferior.h
269 inflow.c
270 infptrace.c
271 infrun.c
272 inftarg.c
273 irix4-nat.c
274 irix5-nat.c
275 isi-xdep.c
276 kdb-start.c
277 language.c
278 language.h
279 lynx-nat.c
280 m2-exp.y
281 m2-lang.c
282 m2-lang.h
283 m2-typeprint.c
284 m2-valprint.c
285 m3-nat.c
286 m68k-stub.c
287 m68k-tdep.c
288 m68knbsd-nat.c
289 m88k-nat.c
290 m88k-tdep.c
291 mac-defs.h
292 mac-xdep.c
293 mac-gdb.r
294 mac-nat.c
295 main.c
296 maint.c
297 mdebugread.c
298 mem-break.c
299 minimon.h
300 minsyms.c
301 mips-nat.c
302 mips-tdep.c
303 mipsm3-nat.c
304 mipsv4-nat.c
305 mipsread.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 op50-rom.c
324 os9kread.c
325 osf-share
326 osfsolib.c
327 parse.c
328 parser-defs.h
329 partial-stab.h
330 ppcbug-rom.c
331 printcmd.c
332 process_reply.defs
333 procfs.c
334 ptx4-nat.c
335 pyr-tdep.c
336 pyr-xdep.c
337 remote-adapt.c
338 remote-array.c
339 remote-bug.c
340 remote-e7000.c
341 remote-eb.c
342 remote-es.c
343 remote-est.c
344 remote-hms.c
345 remote-mips.c
346 remote-mm.c
347 remote-nindy.c
348 remote-nrom.c
349 remote-os9k.c
350 remote-pa.c
351 remote-rdp.c
352 remote-sim.c
353 remote-sim.h
354 remote-st.c
355 remote-udi.c
356 remote-utils.c
357 remote-utils.h
358 remote-vx.c
359 remote-vx29k.c
360 remote-vx68.c
361 remote-vx960.c
362 remote-vxmips.c
363 remote-vxsparc.c
364 remote-wiggler.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-tcp.c
380 ser-unix.c
381 serial.c
382 serial.h
383 sh-stub.c
384 sh-tdep.c
385 sh3-rom.c
386 signals.h
387 sol-thread.c
388 solib.c
389 solib.h
390 somread.c
391 somsolib.c
392 somsolib.h
393 source.c
394 sparc-nat.c
395 sparc-stub.c
396 sparc-tdep.c
397 sparcl-stub.c
398 sparcl-tdep.c
399 sparclet-rom.c
400 srec.h
401 stabsread.c
402 stabsread.h
403 stack.c
404 standalone.c
405 stop-gdb.c
406 stuff.c
407 sun3-nat.c
408 sun386-nat.c
409 symfile.c
410 symfile.h
411 symm-nat.c
412 symm-tdep.c
413 symmisc.c
414 symtab.c
415 symtab.h
416 tahoe-tdep.c
417 target.c
418 target.h
419 terminal.h
420 testsuite
421 thread.c
422 top.c
423 top.h
424 typeprint.c
425 typeprint.h
426 ultra3-nat.c
427 ultra3-xdep.c
428 umax-xdep.c
429 utils.c
430 valarith.c
431 valops.c
432 valprint.c
433 valprint.h
434 value.h
435 values.c
436 vax-tdep.c
437 vx-share
438 w65-tdep.c
439 w89k-rom.c
440 win32-nat.c
441 xcoffread.c
442 xcoffsolib.c
443 xcoffsolib.h
444 xmodem.c
445 xmodem.h
446 z8k-tdep.c
447
448 # Things which are explicitly *not* kept, for now.
449
450 Things-to-lose:
451
452 ser-go32-para.c
453 HOW_TO_RELEASE
454
455 Do-last:
456
457 # Don't try to clean directories here, as the 'mv' command will fail.
458 # Also, grep fails on NFS mounted directories.
459 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
460 echo Catering to RMS by removing traces of \"gdbtk\"...
461 for i in * ; do
462 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
463 echo Removing traces of \"gdbtk\" out of $i...
464 cp $i new
465 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
466 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
467 echo Caching $i in .Recover...
468 mv $i .Recover
469 fi
470 mv new $i
471 fi
472 done
473 else
474 echo Leaving \"gdbtk\" in the sources...
475 for i in * ; do
476 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
477 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
478 cp $i new
479 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
480 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
481 echo Caching $i in .Recover...
482 mv $i .Recover
483 fi
484 mv new $i
485 fi
486 done
487 fi
488
489 arc_files="configure.tgt ChangeLog-95"
490
491 if ( echo $* | grep keep\-arc > /dev/null ) ; then
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 Keeping arc stuff in $i
496 fi
497 fi
498 done
499 else
500 for i in $arc_files ; do
501 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
502 if [ -n "${verbose}" ] ; then
503 echo Removing traces of \"arc\" from $i...
504 fi
505 cp $i new
506 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
507 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
508 if [ -n "${verbose}" ] ; then
509 echo Caching $i in .Recover...
510 fi
511 mv $i .Recover
512 fi
513 mv new $i
514 fi
515 done
516 fi
517
518 d10v_files="configure.tgt ChangeLog"
519
520 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
521 for i in $d10v_files ; do
522 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
523 if [ -n "${verbose}" ] ; then
524 echo Keeping d10v stuff in $i
525 fi
526 fi
527 done
528 else
529 for i in $d10v_files ; do
530 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
531 if [ -n "${verbose}" ] ; then
532 echo Removing traces of \"d10v\" from $i...
533 fi
534 cp $i new
535 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
536 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
537 if [ -n "${verbose}" ] ; then
538 echo Caching $i in .Recover...
539 fi
540 mv $i .Recover
541 fi
542 mv new $i
543 fi
544 done
545 fi
546
547 if ( echo $* | grep keep\-gm > /dev/null ) ; then
548 for i in * ; do
549 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
550 if [ -n "${verbose}" ] ; then
551 echo Keeping gm stuff in $i
552 fi
553 fi
554 done
555 else
556 for i in * ; do
557 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
558 if [ -n "${verbose}" ] ; then
559 echo Removing traces of \"gm\" from $i...
560 fi
561 cp $i new
562 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
563 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
564 if [ -n "${verbose}" ] ; then
565 echo Caching $i in .Recover...
566 fi
567 mv $i .Recover
568 fi
569 mv new $i
570 fi
571 done
572 fi
573
574 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
575 for i in * ; do
576 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
577 if [ -n "${verbose}" ] ; then
578 echo Keeping v850 stuff in $i
579 fi
580 fi
581 done
582 else
583 for i in * ; do
584 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
585 if [ -n "${verbose}" ] ; then
586 echo Removing traces of \"v850\" from $i...
587 fi
588 cp $i new
589 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
590 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
591 if [ -n "${verbose}" ] ; then
592 echo Caching $i in .Recover...
593 fi
594 mv $i .Recover
595 fi
596 mv new $i
597 fi
598 done
599 fi
600
601 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
602 for i in * ; do
603 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
604 if [ -n "${verbose}" ] ; then
605 echo Keeping m32r stuff in $i
606 fi
607 fi
608 done
609 else
610 for i in * ; do
611 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
612 if [ -n "${verbose}" ] ; then
613 echo Removing traces of \"m32r\" from $i...
614 fi
615 cp $i new
616 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
617 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
618 if [ -n "${verbose}" ] ; then
619 echo Caching $i in .Recover...
620 fi
621 mv $i .Recover
622 fi
623 mv new $i
624 fi
625 done
626 fi
627
628 for i in * ; do
629 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
630 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
631 fi
632 done
633
634 #
635 # End of file.
This page took 0.085756 seconds and 5 git commands to generate.