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