Break the thread of control that implies that a unix child
[deliverable/binutils-gdb.git] / .Sanitize
1 # .Sanitize for devo.
2
3 # Each directory to survive it's 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 # All files listed between the "Things-to-keep:" line and the
19 # "Do-last:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25
26 .cvsignore
27 CYGNUS
28 ChangeLog
29 INSTALL
30 Makefile.in
31 README
32 SUPPORTED
33 autoconf
34 bfd
35 binutils
36 byacc
37 cfg-paper.texi
38 config
39 config.sub
40 configure
41 configure.bat
42 configure.in
43 configure.man
44 configure.texi
45 cvs
46 deja-gnu
47 diff
48 emacs
49 flex
50 gas
51 gcc
52 gdb
53 gdbm
54 gdbtest
55 glob
56 gprof
57 grep
58 include
59 install.texinfo
60 ispell
61 ld
62 libg++
63 libgcc
64 libiberty
65 make
66 mmalloc
67 move-if-change
68 newlib
69 opcodes
70 patch
71 prms
72 rcs
73 readline
74 send_pr
75 standards.texi
76 test-build.mk
77 texinfo
78 tgas
79
80 # The lines between the "Do-last:" line and the end of the file
81 # are executed as a /bin/sh shell script after everything else is
82 # done.
83
84 Do-last:
85
86 echo Looking for signs of \"v9\"...
87
88 # Don't try to clean directories here, as the 'mv' command will fail.
89 # Also, grep fails on NFS mounted directories.
90 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
91 for i in * ; do
92 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
93 echo Keeping v9 stuff in $i
94 fi
95 done
96 else
97 for i in * ; do
98 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
99 echo Cleaning the \"v9\" out of $i...
100 cp $i new
101 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
102 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
103 mv $i .Recover
104 fi
105 mv new $i
106 fi
107 done
108 fi
109
110 echo Looking for signs of \"life\"...
111
112 # Don't try to clean directories here, as the 'mv' command will fail.
113 # Also, grep fails on NFS mounted directories.
114 if ( echo $* | grep keep\-life > /dev/null ) ; then
115 for i in * ; do
116 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
117 echo Keeping life alive in $i
118 fi
119 done
120 else
121 for i in * ; do
122 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
123 echo Beating the \"life\" out of $i...
124 cp $i new
125 sed '/start\-sanitize\-life/,/end-\sanitize\-life/d' < $i > new
126 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
127 mv $i .Recover
128 fi
129 mv new $i
130 fi
131 done
132 fi
133
134 for i in * ; do
135 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
136 echo Some mentions of Sanitize are still left in $i!
137 fi
138 done
139
140 # eof
This page took 0.033154 seconds and 4 git commands to generate.