]>
Commit | Line | Data |
---|---|---|
43e36dd2 | 1 | # .Sanitize for devo. |
a93b3c77 RP |
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 | |
43e36dd2 | 14 | # done in this directory. |
a93b3c77 RP |
15 | |
16 | Do-first: | |
17 | ||
5d4ec851 | 18 | if ( echo $* | grep keep\-chill > /dev/null ) ; then |
e90de1f5 | 19 | keep_these_too="chillrt test-chill" |
5d4ec851 FF |
20 | fi |
21 | ||
7d0eab7b DZ |
22 | if ( echo $* | grep keep\-cygnus > /dev/null) ; then |
23 | keep_these_too="${keep_these_too} release release-info" | |
24 | fi | |
25 | ||
26 | ||
a93b3c77 | 27 | # All files listed between the "Things-to-keep:" line and the |
43e36dd2 | 28 | # "Do-last:" line will be kept. All other files will be removed. |
a93b3c77 RP |
29 | # Directories listed in this section will have their own Sanitize |
30 | # called. Directories not listed will be removed in their entirety | |
31 | # with rm -rf. | |
32 | ||
33 | Things-to-keep: | |
34 | ||
c9b36b5f | 35 | .cvsignore |
6e37b215 PB |
36 | COPYING |
37 | COPYING.LIB | |
6227a92b | 38 | CYGNUS |
57d32184 | 39 | ChangeLog |
a93b3c77 | 40 | Makefile.in |
965a9f14 | 41 | README |
28f760d3 | 42 | autoconf |
d5eb68fa | 43 | bfd |
ebec4684 | 44 | binutils |
4e0c2de7 | 45 | build-all.mk |
6a2d7603 | 46 | byacc |
a93b3c77 | 47 | config |
5cc24596 | 48 | config.guess |
db2de419 | 49 | config.sub |
a93b3c77 | 50 | configure |
e72c4b3a | 51 | configure.bat |
a93b3c77 | 52 | configure.in |
cdabe523 | 53 | cvs |
8ec1b2a1 | 54 | deja-gnu |
d623fd7e | 55 | dejagnu |
5781b1ba | 56 | diff |
4e0c2de7 | 57 | dvips |
cdabe523 | 58 | emacs |
701df845 | 59 | etc |
17519312 | 60 | expect |
4e0c2de7 | 61 | fileutils |
49df2308 | 62 | flex |
a93b3c77 | 63 | gas |
ebec4684 RP |
64 | gcc |
65 | gdb | |
f3d3d2cd | 66 | gdbm |
e72c4b3a | 67 | gdbtest |
f7f4df6a | 68 | glob |
9a14a29d | 69 | gprof |
5781b1ba | 70 | grep |
4e0c2de7 | 71 | groff |
a93b3c77 | 72 | include |
4a01dc52 | 73 | install.sh |
2dbd15d2 | 74 | ispell |
ebec4684 | 75 | ld |
0862386b | 76 | libg++ |
e72c4b3a RP |
77 | libgcc |
78 | libiberty | |
7c4dd2c8 | 79 | libio |
4e0c2de7 | 80 | m4 |
cdabe523 | 81 | make |
d592622a | 82 | mmalloc |
e72c4b3a | 83 | move-if-change |
6ae8fff5 | 84 | newlib |
aa06ff7e | 85 | opcodes |
57d32184 | 86 | patch |
d42563da | 87 | prms |
3c8735af | 88 | rcs |
a93b3c77 | 89 | readline |
4e0c2de7 | 90 | sed |
00d8b290 | 91 | send-pr |
4e0c2de7 | 92 | shellutils |
da7e4b5c | 93 | sim |
17519312 | 94 | tcl |
4e0c2de7 DZ |
95 | textutils |
96 | tk | |
c9b36b5f | 97 | test-build.mk |
d239963b | 98 | texinfo |
14bed8ee | 99 | tgas |
fa64be8d | 100 | uudecode |
4e0c2de7 DZ |
101 | wdiff |
102 | xiberty | |
a93b3c77 | 103 | |
87756e15 RP |
104 | Things-to-lose: |
105 | ||
775d4a40 | 106 | |
43e36dd2 RP |
107 | # The lines between the "Do-last:" line and the end of the file |
108 | # are executed as a /bin/sh shell script after everything else is | |
109 | # done. | |
110 | ||
a93b3c77 RP |
111 | Do-last: |
112 | ||
7b85349f RP |
113 | if ( echo $* | egrep verbose > /dev/null ) ; then |
114 | verbose=true | |
115 | else | |
116 | verbose= | |
117 | fi | |
118 | ||
119 | if [ -n "${verbose}" ] ; then | |
120 | echo Looking for signs of \"v9\"... | |
121 | fi | |
eebff21c JG |
122 | |
123 | # Don't try to clean directories here, as the 'mv' command will fail. | |
124 | # Also, grep fails on NFS mounted directories. | |
125 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then | |
126 | for i in * ; do | |
127 | if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then | |
7b85349f RP |
128 | if [ -n "${verbose}" ] ; then |
129 | echo Keeping v9 stuff in $i | |
130 | fi | |
eebff21c JG |
131 | fi |
132 | done | |
133 | else | |
134 | for i in * ; do | |
135 | if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then | |
7b85349f RP |
136 | if [ -n "${verbose}" ] ; then |
137 | echo Cleaning the \"v9\" out of $i... | |
138 | fi | |
e00efef1 | 139 | cp $i new |
eebff21c JG |
140 | sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new |
141 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
142 | mv $i .Recover | |
143 | fi | |
144 | mv new $i | |
eebff21c JG |
145 | fi |
146 | done | |
147 | fi | |
148 | ||
7b85349f RP |
149 | if [ -n "${verbose}" ] ; then |
150 | echo Thawing away the \"chill\"... | |
151 | fi | |
5d4ec851 FF |
152 | |
153 | # Don't try to clean directories here, as the 'mv' command will fail. | |
154 | # Also, grep fails on NFS mounted directories. | |
155 | if ( echo $* | grep keep\-chill > /dev/null ) ; then | |
156 | for i in * ; do | |
157 | if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then | |
7b85349f RP |
158 | if [ -n "${verbose}" ] ; then |
159 | echo Keeping chill stuff in $i | |
160 | fi | |
5d4ec851 FF |
161 | fi |
162 | done | |
163 | else | |
164 | for i in * ; do | |
165 | if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then | |
7b85349f RP |
166 | if [ -n "${verbose}" ] ; then |
167 | echo Thawing the \"chill\" out of $i... | |
168 | fi | |
5d4ec851 FF |
169 | cp $i new |
170 | sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new | |
171 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
7b85349f RP |
172 | if [ -n "${verbose}" ] ; then |
173 | echo Caching $i in .Recover... | |
174 | fi | |
5d4ec851 FF |
175 | mv $i .Recover |
176 | fi | |
177 | mv new $i | |
178 | fi | |
179 | done | |
5d4ec851 FF |
180 | fi |
181 | ||
e11b54be PB |
182 | for i in * ; do |
183 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
7b85349f | 184 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 |
e11b54be PB |
185 | fi |
186 | done | |
57d32184 RP |
187 | |
188 | # eof |