fixed .Sanitize
[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 mn10300-tdep.c
307 mon960-rom.c
308 monitor.h
309 monitor.c
310 mpw-config.in
311 mpw-make.sed
312 msg.defs
313 msg_reply.defs
314 news-xdep.c
315 nindy-share
316 nindy-tdep.c
317 nlm
318 nlmread.c
319 notify.defs
320 ns32k-tdep.c
321 ns32km3-nat.c
322 objfiles.c
323 objfiles.h
324 op50-rom.c
325 os9kread.c
326 osf-share
327 osfsolib.c
328 parse.c
329 parser-defs.h
330 partial-stab.h
331 ppcbug-rom.c
332 printcmd.c
333 process_reply.defs
334 procfs.c
335 ptx4-nat.c
336 pyr-tdep.c
337 pyr-xdep.c
338 remote-adapt.c
339 remote-array.c
340 remote-bug.c
341 remote-e7000.c
342 remote-eb.c
343 remote-es.c
344 remote-est.c
345 remote-hms.c
346 remote-mips.c
347 remote-mm.c
348 remote-nindy.c
349 remote-nrom.c
350 remote-os9k.c
351 remote-pa.c
352 remote-rdp.c
353 remote-sim.c
354 remote-sim.h
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-wiggler.c
366 remote.c
367 reply_mig_hack.awk
368 rs6000-nat.c
369 rs6000-tdep.c
370 rom68k-rom.c
371 saber.suppress
372 scm-exp.c
373 scm-lang.c
374 scm-lang.h
375 scm-tags.h
376 scm-valprint.c
377 ser-e7kpc.c
378 ser-go32.c
379 ser-mac.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 srec.h
402 stabsread.c
403 stabsread.h
404 stack.c
405 standalone.c
406 stop-gdb.c
407 stuff.c
408 sun3-nat.c
409 sun386-nat.c
410 symfile.c
411 symfile.h
412 symm-nat.c
413 symm-tdep.c
414 symmisc.c
415 symtab.c
416 symtab.h
417 tahoe-tdep.c
418 target.c
419 target.h
420 terminal.h
421 testsuite
422 thread.c
423 top.c
424 top.h
425 typeprint.c
426 typeprint.h
427 ultra3-nat.c
428 ultra3-xdep.c
429 umax-xdep.c
430 utils.c
431 valarith.c
432 valops.c
433 valprint.c
434 valprint.h
435 value.h
436 values.c
437 vax-tdep.c
438 vx-share
439 w65-tdep.c
440 w89k-rom.c
441 win32-nat.c
442 xcoffread.c
443 xcoffsolib.c
444 xcoffsolib.h
445 xmodem.c
446 xmodem.h
447 z8k-tdep.c
448
449 # Things which are explicitly *not* kept, for now.
450
451 Things-to-lose:
452
453 ser-go32-para.c
454 HOW_TO_RELEASE
455
456 Do-last:
457
458 # Don't try to clean directories here, as the 'mv' command will fail.
459 # Also, grep fails on NFS mounted directories.
460 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
461 echo Catering to RMS by removing traces of \"gdbtk\"...
462 for i in * ; do
463 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
464 echo Removing traces of \"gdbtk\" out of $i...
465 cp $i new
466 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
467 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
468 echo Caching $i in .Recover...
469 mv $i .Recover
470 fi
471 mv new $i
472 fi
473 done
474 else
475 echo Leaving \"gdbtk\" in the sources...
476 for i in * ; do
477 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
478 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
479 cp $i new
480 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
481 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
482 echo Caching $i in .Recover...
483 mv $i .Recover
484 fi
485 mv new $i
486 fi
487 done
488 fi
489
490 arc_files="configure.tgt ChangeLog-95"
491
492 if ( echo $* | grep keep\-arc > /dev/null ) ; then
493 for i in $arc_files ; do
494 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
495 if [ -n "${verbose}" ] ; then
496 echo Keeping arc stuff in $i
497 fi
498 fi
499 done
500 else
501 for i in $arc_files ; do
502 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
503 if [ -n "${verbose}" ] ; then
504 echo Removing traces of \"arc\" from $i...
505 fi
506 cp $i new
507 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
508 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
509 if [ -n "${verbose}" ] ; then
510 echo Caching $i in .Recover...
511 fi
512 mv $i .Recover
513 fi
514 mv new $i
515 fi
516 done
517 fi
518
519 d10v_files="configure.tgt ChangeLog valops.c"
520
521 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
522 for i in $d10v_files ; do
523 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
524 if [ -n "${verbose}" ] ; then
525 echo Keeping d10v stuff in $i
526 fi
527 fi
528 done
529 else
530 for i in $d10v_files ; do
531 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
532 if [ -n "${verbose}" ] ; then
533 echo Removing traces of \"d10v\" from $i...
534 fi
535 cp $i new
536 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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\-gm > /dev/null ) ; then
549 for i in * ; do
550 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
551 if [ -n "${verbose}" ] ; then
552 echo Keeping gm stuff in $i
553 fi
554 fi
555 done
556 else
557 for i in * ; do
558 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
559 if [ -n "${verbose}" ] ; then
560 echo Removing traces of \"gm\" from $i...
561 fi
562 cp $i new
563 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/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\-v850 > /dev/null ) ; then
576 for i in * ; do
577 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
578 if [ -n "${verbose}" ] ; then
579 echo Keeping v850 stuff in $i
580 fi
581 fi
582 done
583 else
584 for i in * ; do
585 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
586 if [ -n "${verbose}" ] ; then
587 echo Removing traces of \"v850\" from $i...
588 fi
589 cp $i new
590 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/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\-m32r > /dev/null ) ; then
603 for i in * ; do
604 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
605 if [ -n "${verbose}" ] ; then
606 echo Keeping m32r stuff in $i
607 fi
608 fi
609 done
610 else
611 for i in * ; do
612 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
613 if [ -n "${verbose}" ] ; then
614 echo Removing traces of \"m32r\" from $i...
615 fi
616 cp $i new
617 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/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 for i in * ; do
630 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
631 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
632 fi
633 done
634
635 #
636 # End of file.
This page took 0.049099 seconds and 5 git commands to generate.