CARP:
[external/binutils.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="ChangeLog-gdbtk README.GDBTK gdbtk.c gdbtk.h gdbtk-cmds.c gdbtk-hooks.c gdbtcl2 gdb.rc gdbtool.ico"
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 tic80_files="tic80-tdep.c"
33
34 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
35         keep_these_too="${tic80_files} ${keep_these_too}"
36         if [ -n "${verbose}" ] ; then
37                 echo Keeping ${tic80_files}
38         fi
39 else
40         lose_these_too="${tic80_files} ${lose_these_too}"
41         if [ -n "${verbose}" ] ; then
42                 echo Deleting ${tic80_files}
43         fi
44 fi
45
46 sky_files="txvu-tdep.c"
47
48 if ( echo $* | grep keep\-sky > /dev/null ) ; then
49         keep_these_too="${sky_files} ${keep_these_too}"
50         if [ -n "${verbose}" ] ; then
51                 echo Keeping ${sky_files}
52         fi
53 else
54         lose_these_too="${sky_files} ${lose_these_too}"
55         if [ -n "${verbose}" ] ; then
56                 echo Deleting ${sky_files}
57         fi
58 fi
59
60 java_files="jv-exp.y jv-lang.c jv-lang.h jv-typeprint.c jv-valprint.c"
61
62 if ( echo $* | grep keep\-java > /dev/null ) ; then
63         keep_these_too="${java_files} ${keep_these_too}"
64         if [ -n "${verbose}" ] ; then
65                 echo Keeping ${java_files}
66         fi
67 else
68         lose_these_too="${java_files} ${lose_these_too}"
69         if [ -n "${verbose}" ] ; then
70                 echo Deleting ${java_files}
71         fi
72 fi
73
74 vr4111_files="nec4102rom.c"
75
76 if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then
77         keep_these_too="${vr4111_files} ${keep_these_too}"
78         if [ -n "${verbose}" ] ; then
79                 echo Keeping ${vr4111_files}
80         fi
81 else
82         lose_these_too="${vr4111_files} ${lose_these_too}"
83         if [ -n "${verbose}" ] ; then
84                 echo Deleting ${vr4111_files}
85         fi
86 fi
87
88 carp_files="carp-tdep.c"
89
90 if ( echo $* | grep keep\-carp > /dev/null ) ; then
91         keep_these_too="${carp_files} ${keep_these_too}"
92         if [ -n "${verbose}" ] ; then
93                 echo Keeping ${carp_files}
94         fi
95 else
96         lose_these_too="${carp_files} ${lose_these_too}"
97         if [ -n "${verbose}" ] ; then
98                 echo Deleting ${carp_files}
99         fi
100 fi
101
102 # All files listed between the "Things-to-keep:" line and the
103 # "Files-to-sed:" line will be kept.  All other files will be removed.
104 # Directories listed in this section will have their own Sanitize
105 # called.  Directories not listed will be removed in their entirety
106 # with rm -rf.
107
108 Things-to-keep:
109
110 29k-share
111 COPYING
112 ChangeLog
113 ChangeLog-3.x
114 ChangeLog-9091
115 ChangeLog-92
116 ChangeLog-93
117 ChangeLog-94
118 ChangeLog-95
119 ChangeLog-96
120 ChangeLog-97
121 Makefile.in
122 NEWS
123 README
124 TODO
125 a29k-tdep.c
126 a68v-nat.c
127 abug-rom.c
128 acconfig.h
129 aclocal.m4
130 alpha-nat.c
131 alpha-tdep.c
132 altos-xdep.c
133 annotate.c
134 annotate.h
135 arc-tdep.c
136 arm-convert.s
137 arm-tdep.c
138 arm-xdep.c
139 ax-gdb.c
140 ax-gdb.h
141 ax-general.c
142 ax.h
143 bcache.c
144 bcache.h
145 blockframe.c
146 breakpoint.c
147 breakpoint.h
148 buildsym.c
149 buildsym.h
150 c-exp.y
151 c-lang.c
152 c-lang.h
153 c-typeprint.c
154 c-valprint.c
155 call-cmds.h
156 ch-exp.c
157 ch-lang.c
158 ch-lang.h
159 ch-typeprint.c
160 ch-valprint.c
161 coff-solib.c
162 coff-solib.h
163 coffread.c
164 command.c
165 command.h
166 complaints.c
167 complaints.h
168 config
169 config.in
170 configure
171 configure.host
172 configure.in
173 configure.tgt
174 convex-tdep.c
175 convex-xdep.c
176 copying.awk
177 copying.c
178 core-aout.c
179 core-regset.c
180 core-sol2.c
181 corefile.c
182 corelow.c
183 cp-valprint.c
184 cpu32bug-rom.c
185 cxux-nat.c
186 d10v-tdep.c
187 d30v-tdep.c
188 dbug-rom.c
189 dbxread.c
190 dcache.c
191 dcache.h
192 debugify.c
193 debugify.h
194 defs.h
195 delta68-nat.c
196 demangle.c
197 dink32-rom.c
198 doc
199 dpx2-nat.c
200 dsrec.c
201 dst.h
202 dstread.c
203 dve3900-rom.c
204 dwarf2read.c
205 dwarfread.c
206 elfread.c
207 environ.c
208 environ.h
209 eval.c
210 exc_request.defs
211 exec.c
212 expprint.c
213 expression.h
214 f-exp.y
215 f-lang.c
216 f-lang.h
217 f-typeprint.c
218 f-valprint.c
219 findvar.c
220 fork-child.c
221 fr30-tdep.c
222 frame.h
223 gdb-stabs.h
224 gdb.1
225 gdb.gdb
226 gdb_stat.h
227 gdb_string.h
228 gdba.el
229 gdbarch.c
230 gdbarch.h
231 gdbcmd.h
232 gdbcore.h
233 gdbinit.in
234 gdbserver
235 gdbthread.h
236 gdbtypes.c
237 gdbtypes.h
238 gnu-nat.c
239 gnu-nat.h
240 gnu-regex.c
241 gnu-regex.h
242 go32-xdep.c
243 gould-tdep.c
244 gould-xdep.c
245 h8300-tdep.c
246 h8500-tdep.c
247 hp300ux-nat.c
248 hppa-tdep.c
249 hppab-nat.c
250 hppah-nat.c
251 hppam3-nat.c
252 hpread.c
253 hpux-thread.c
254 i386-stub.c
255 i386-tdep.c
256 i386aix-nat.c
257 i386b-nat.c
258 i386gnu-nat.c
259 i386ly-tdep.c
260 i386m3-nat.c
261 i386mach-nat.c
262 i386v-nat.c
263 i386v4-nat.c
264 i387-tdep.c
265 i960-tdep.c
266 infcmd.c
267 inferior.h
268 inflow.c
269 infptrace.c
270 infrun.c
271 inftarg.c
272 irix4-nat.c
273 irix5-nat.c
274 isi-xdep.c
275 kdb-start.c
276 language.c
277 language.h
278 lynx-nat.c
279 m2-exp.y
280 m2-lang.c
281 m2-lang.h
282 m2-typeprint.c
283 m2-valprint.c
284 m3-nat.c
285 m32r-rom.c
286 m32r-stub.c
287 m32r-tdep.c
288 m68klinux-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-gdb.r
296 mac-nat.c
297 mac-xdep.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 mipsread.c
308 mipsv4-nat.c
309 mn10200-tdep.c
310 mn10300-tdep.c
311 mon960-rom.c
312 monitor.c
313 monitor.h
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 ns32knbsd-nat.c
327 objfiles.c
328 objfiles.h
329 ocd.c
330 ocd.h
331 op50-rom.c
332 os9kread.c
333 osf-share
334 osfsolib.c
335 parse.c
336 parser-defs.h
337 partial-stab.h
338 ppc-bdm.c
339 ppcbug-rom.c
340 printcmd.c
341 process_reply.defs
342 procfs.c
343 ptx4-nat.c
344 pyr-tdep.c
345 pyr-xdep.c
346 rdi-share
347 remote-adapt.c
348 remote-array.c
349 remote-bug.c
350 remote-d10v.c
351 remote-e7000.c
352 remote-eb.c
353 remote-es.c
354 remote-est.c
355 remote-hms.c
356 remote-mips.c
357 remote-mm.c
358 remote-nindy.c
359 remote-nrom.c
360 remote-os9k.c
361 remote-rdi.c
362 remote-rdp.c
363 remote-sds.c
364 remote-sim.c
365 remote-st.c
366 remote-udi.c
367 remote-utils.c
368 remote-utils.h
369 remote-vx.c
370 remote-vx29k.c
371 remote-vx68.c
372 remote-vx960.c
373 remote-vxmips.c
374 remote-vxsparc.c
375 remote.c
376 reply_mig_hack.awk
377 rom68k-rom.c
378 rs6000-nat.c
379 rs6000-tdep.c
380 saber.suppress
381 scm-exp.c
382 scm-lang.c
383 scm-lang.h
384 scm-tags.h
385 scm-valprint.c
386 ser-e7kpc.c
387 ser-go32.c
388 ser-mac.c
389 ser-ocd.c
390 ser-tcp.c
391 ser-unix.c
392 serial.c
393 serial.h
394 sh-stub.c
395 sh-tdep.c
396 sh3-rom.c
397 signals.h
398 sol-thread.c
399 solib.c
400 solib.h
401 somread.c
402 somsolib.c
403 somsolib.h
404 source.c
405 sparc-nat.c
406 sparc-stub.c
407 sparc-tdep.c
408 sparcl-stub.c
409 sparcl-tdep.c
410 sparclet-rom.c
411 sparclet-stub.c
412 srec.h
413 stabsread.c
414 stabsread.h
415 stack.c
416 standalone.c
417 stop-gdb.c
418 stuff.c
419 sun3-nat.c
420 sun386-nat.c
421 symfile.c
422 symfile.h
423 symm-nat.c
424 symm-tdep.c
425 symmisc.c
426 symtab.c
427 symtab.h
428 tahoe-tdep.c
429 target.c
430 target.h
431 terminal.h
432 testsuite
433 thread.c
434 top.c
435 top.h
436 tracepoint.c
437 tracepoint.h
438 typeprint.c
439 typeprint.h
440 ultra3-nat.c
441 ultra3-xdep.c
442 umax-xdep.c
443 utils.c
444 v850-tdep.c
445 v850ice.c
446 valarith.c
447 valops.c
448 valprint.c
449 valprint.h
450 value.h
451 values.c
452 vax-tdep.c
453 vx-share
454 w65-tdep.c
455 w89k-rom.c
456 win32-nat.c
457 xcoffread.c
458 xcoffsolib.c
459 xcoffsolib.h
460 xmodem.c
461 xmodem.h
462 z8k-tdep.c
463
464 # Things which are explicitly *not* kept, for now.
465
466 Things-to-lose:
467
468 GDB-HACK-RULES
469 HOW_TO_RELEASE
470 gdbcfgxref
471
472 Do-last:
473
474 # Don't try to clean directories here, as the 'mv' command will fail.
475 # Also, grep fails on NFS mounted directories.
476 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
477         echo Catering to RMS by removing traces of \"gdbtk\"...
478         for i in * ; do
479                 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
480                         echo Removing traces of \"gdbtk\" out of $i...
481                         cp $i new
482                         sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
483                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
484                                 echo Caching $i in .Recover...
485                                 mv $i .Recover
486                         fi
487                         mv new $i
488                 fi
489         done
490 else
491         echo Leaving \"gdbtk\" in the sources...
492         for i in * ; do
493                 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
494                         echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
495                         cp $i new
496                         sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
497                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
498                                 echo Caching $i in .Recover...
499                                 mv $i .Recover
500                         fi
501                         mv new $i
502                 fi
503         done
504 fi
505
506 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
507         for i in * ; do
508                 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
509                         if [ -n "${verbose}" ] ; then
510                                 echo Keeping v850e stuff in $i
511                         fi
512                 fi
513         done
514 else
515         for i in * ; do
516                 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
517                         if [ -n "${verbose}" ] ; then
518                                 echo Removing traces of \"v850e\" from $i...
519                         fi
520                         cp $i new
521                         sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
522                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
523                                 if [ -n "${verbose}" ] ; then
524                                         echo Caching $i in .Recover...
525                                 fi
526                                 mv $i .Recover
527                         fi
528                         mv new $i
529                 fi
530         done
531 fi
532
533 if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
534         for i in * ; do
535                 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
536                         if [ -n "${verbose}" ] ; then
537                                 echo Keeping vr4xxx stuff in $i
538                         fi
539                 fi
540         done
541 else
542         for i in * ; do
543                 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
544                         if [ -n "${verbose}" ] ; then
545                                 echo Removing traces of \"vr4xxx\" from $i...
546                         fi
547                         cp $i new
548                         sed '/start\-sanitize\-vr4xxx/,/end-\sanitize\-vr4xxx/d' < $i > new
549                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
550                                 if [ -n "${verbose}" ] ; then
551                                         echo Caching $i in .Recover...
552                                 fi
553                                 mv $i .Recover
554                         fi
555                         mv new $i
556                 fi
557         done
558 fi
559
560 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
561         for i in * ; do
562                 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
563                         if [ -n "${verbose}" ] ; then
564                                 echo Keeping vr4320 stuff in $i
565                         fi
566                 fi
567         done
568 else
569         for i in * ; do
570                 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
571                         if [ -n "${verbose}" ] ; then
572                                 echo Removing traces of \"vr4320\" from $i...
573                         fi
574                         cp $i new
575                         sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
576                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
577                                 if [ -n "${verbose}" ] ; then
578                                         echo Caching $i in .Recover...
579                                 fi
580                                 mv $i .Recover
581                         fi
582                         mv new $i
583                 fi
584         done
585 fi
586
587 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
588         for i in * ; do
589                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
590                         if [ -n "${verbose}" ] ; then
591                                 echo Keeping r5900 stuff in $i
592                         fi
593                 fi
594         done
595 else
596         for i in * ; do
597                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
598                         if [ -n "${verbose}" ] ; then
599                                 echo Removing traces of \"r5900\" from $i...
600                         fi
601                         cp $i new
602                         sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
603                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
604                                 if [ -n "${verbose}" ] ; then
605                                         echo Caching $i in .Recover...
606                                 fi
607                                 mv $i .Recover
608                         fi
609                         mv new $i
610                 fi
611         done
612 fi
613
614 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
615         for i in * ; do
616                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
617                         if [ -n "${verbose}" ] ; then
618                                 echo Keeping tx19 stuff in $i
619                         fi
620                 fi
621         done
622 else
623         for i in * ; do
624                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
625                         if [ -n "${verbose}" ] ; then
626                                 echo Removing traces of \"tx19\" from $i...
627                         fi
628                         cp $i new
629                         sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
630                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
631                                 if [ -n "${verbose}" ] ; then
632                                         echo Caching $i in .Recover...
633                                 fi
634                                 mv $i .Recover
635                         fi
636                         mv new $i
637                 fi
638         done
639 fi
640
641 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
642         for i in * ; do
643                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
644                         if [ -n "${verbose}" ] ; then
645                                 echo Keeping tx49 stuff in $i
646                         fi
647                 fi
648         done
649 else
650         for i in * ; do
651                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
652                         if [ -n "${verbose}" ] ; then
653                                 echo Removing traces of \"tx49\" from $i...
654                         fi
655                         cp $i new
656                         sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
657                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
658                                 if [ -n "${verbose}" ] ; then
659                                         echo Caching $i in .Recover...
660                                 fi
661                                 mv $i .Recover
662                         fi
663                         mv new $i
664                 fi
665         done
666 fi
667
668 if ( echo $* | grep keep\-sky > /dev/null ) ; then
669         for i in * ; do
670                 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
671                         if [ -n "${verbose}" ] ; then
672                                 echo Keeping sky stuff in $i
673                         fi
674                 fi
675         done
676 else
677         for i in * ; do
678                 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
679                         if [ -n "${verbose}" ] ; then
680                                 echo Removing traces of \"sky\" from $i...
681                         fi
682                         cp $i new
683                         sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
684                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
685                                 if [ -n "${verbose}" ] ; then
686                                         echo Caching $i in .Recover...
687                                 fi
688                                 mv $i .Recover
689                         fi
690                         mv new $i
691                 fi
692         done
693 fi
694
695 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
696         for i in * ; do
697                 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
698                         if [ -n "${verbose}" ] ; then
699                                 echo Keeping cygnus stuff in $i
700                         fi
701                 fi
702         done
703 else
704         for i in * ; do
705                 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
706                         if [ -n "${verbose}" ] ; then
707                                 echo Removing traces of \"cygnus\" from $i...
708                         fi
709                         cp $i new
710                         sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
711                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
712                                 if [ -n "${verbose}" ] ; then
713                                         echo Caching $i in .Recover...
714                                 fi
715                                 mv $i .Recover
716                         fi
717                         mv new $i
718                 fi
719         done
720 fi
721
722 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
723         for i in * ; do
724                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
725                         if [ -n "${verbose}" ] ; then
726                                 echo Keeping tic80 stuff in $i
727                         fi
728                 fi
729         done
730 else
731         for i in * ; do
732                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
733                         if [ -n "${verbose}" ] ; then
734                                 echo Removing traces of \"tic80\" from $i...
735                         fi
736                         cp $i new
737                         sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
738                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
739                                 if [ -n "${verbose}" ] ; then
740                                         echo Caching $i in .Recover...
741                                 fi
742                                 mv $i .Recover
743                         fi
744                         mv new $i
745                 fi
746         done
747 fi
748
749 if ( echo $* | grep keep\-am33 > /dev/null ) ; then
750         for i in * ; do
751                 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
752                         if [ -n "${verbose}" ] ; then
753                                 echo Keeping am33 stuff in $i
754                         fi
755                 fi
756         done
757 else
758         for i in * ; do
759                 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
760                         if [ -n "${verbose}" ] ; then
761                                 echo Removing traces of \"am33\" from $i...
762                         fi
763                         cp $i new
764                         sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new
765                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
766                                 if [ -n "${verbose}" ] ; then
767                                         echo Caching $i in .Recover...
768                                 fi
769                                 mv $i .Recover
770                         fi
771                         mv new $i
772                 fi
773         done
774 fi
775
776 if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then
777         for i in * ; do
778                 if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then
779                         if [ -n "${verbose}" ] ; then
780                                 echo Keeping vr4111 stuff in $i
781                         fi
782                 fi
783         done
784 else
785         for i in * ; do
786                 if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then
787                         if [ -n "${verbose}" ] ; then
788                                 echo Removing traces of \"vr4111\" from $i...
789                         fi
790                         cp $i new
791                         sed '/start\-sanitize\-vr4111/,/end-\sanitize\-vr4111/d' < $i > new
792                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
793                                 if [ -n "${verbose}" ] ; then
794                                         echo Caching $i in .Recover...
795                                 fi
796                                 mv $i .Recover
797                         fi
798                         mv new $i
799                 fi
800         done
801 fi
802
803 if ( echo $* | grep keep\-ide > /dev/null ) ; then
804         for i in * ; do
805                 if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then
806                         if [ -n "${verbose}" ] ; then
807                                 echo Keeping ide stuff in $i
808                         fi
809                 fi
810         done
811 else
812         for i in * ; do
813                 if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then
814                         if [ -n "${verbose}" ] ; then
815                                 echo Removing traces of \"ide\" from $i...
816                         fi
817                         cp $i new
818                         sed '/start\-sanitize\-ide/,/end-\sanitize\-ide/d' < $i > new
819                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
820                                 if [ -n "${verbose}" ] ; then
821                                         echo Caching $i in .Recover...
822                                 fi
823                                 mv $i .Recover
824                         fi
825                         mv new $i
826                 fi
827         done
828 fi
829
830 # This is a temporary measure to sanitize out references to the
831 # startup code need by the TclPro debugger.  When that goes out
832 # of alpha, we can remove this.
833
834 if ( echo $* | grep keep\-tclpro > /dev/null ) ; then
835         for i in * ; do
836                 if test ! -d $i && (grep sanitize-tclpro $i > /dev/null) ; then
837                         echo Keeping \"tclpro\" stuff in $i, but editing out sanitize lines...
838                         cp $i new
839                         sed -e '/start\-sanitize\-tclpro/d' -e '/end\-sanitize\-tclpro/d' < $i > new
840                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
841                                 echo Caching $i in .Recover...
842                                 mv $i .Recover
843                         fi
844                         mv new $i
845                 fi
846         done
847 else
848         for i in * ; do
849                 if test ! -d $i && (grep sanitize-tclpro $i > /dev/null) ; then
850                         if [ -n "${verbose}" ] ; then
851                                 echo Removing traces of \"tclpro\" from $i...
852                         fi
853                         cp $i new
854                         sed '/start\-sanitize\-tclpro/,/end-\sanitize\-tclpro/d' < $i > new
855                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
856                                 if [ -n "${verbose}" ] ; then
857                                         echo Caching $i in .Recover...
858                                 fi
859                                 mv $i .Recover
860                         fi
861                         mv new $i
862                 fi
863         done
864 fi
865
866 if ( echo $* | grep keep\-java > /dev/null ) ; then
867         for i in * ; do
868                 if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
869                         if [ -n "${verbose}" ] ; then
870                                 echo Keeping java stuff in $i
871                         fi
872                 fi
873         done
874 else
875         for i in * ; do
876                 if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
877                         if [ -n "${verbose}" ] ; then
878                                 echo Removing traces of \"java\" from $i...
879                         fi
880                         cp $i new
881                         sed '/start\-sanitize\-java/,/end-\sanitize\-java/d' < $i > new
882                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
883                                 if [ -n "${verbose}" ] ; then
884                                         echo Caching $i in .Recover...
885                                 fi
886                                 mv $i .Recover
887                         fi
888                         mv new $i
889                 fi
890         done
891 fi
892
893 if ( echo $* | grep keep\-carp > /dev/null ) ; then
894         for i in * ; do
895                 if test ! -d $i && (grep sanitize-carp $i > /dev/null) ; then
896                         if [ -n "${verbose}" ] ; then
897                                 echo Keeping carp stuff in $i
898                         fi
899                 fi
900         done
901 else
902         for i in * ; do
903                 if test ! -d $i && (grep sanitize-carp $i > /dev/null) ; then
904                         if [ -n "${verbose}" ] ; then
905                                 echo Removing traces of \"carp\" from $i...
906                         fi
907                         cp $i new
908                         sed '/start\-sanitize\-carp/,/end-\sanitize\-carp/d' < $i > new
909                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
910                                 if [ -n "${verbose}" ] ; then
911                                         echo Caching $i in .Recover...
912                                 fi
913                                 mv $i .Recover
914                         fi
915                         mv new $i
916                 fi
917         done
918 fi
919
920 for i in * ; do
921         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
922                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
923         fi
924 done
925
926 #
927 # End of file.