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