* config/tc-m68k.h (TARGET_FORMAT): If not TE_SUN3, define as
[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
4e0c2de7 62dvips
cdabe523 63emacs
701df845 64etc
17519312 65expect
4e0c2de7 66fileutils
49df2308 67flex
a93b3c77 68gas
ebec4684
RP
69gcc
70gdb
f3d3d2cd 71gdbm
e72c4b3a 72gdbtest
f7f4df6a 73glob
9a14a29d 74gprof
5781b1ba 75grep
4e0c2de7 76groff
a93b3c77 77include
4a01dc52 78install.sh
2dbd15d2 79ispell
ebec4684 80ld
0862386b 81libg++
e72c4b3a
RP
82libgcc
83libiberty
7c4dd2c8 84libio
4e0c2de7 85m4
cdabe523 86make
d592622a 87mmalloc
e72c4b3a 88move-if-change
6ae8fff5 89newlib
aa06ff7e 90opcodes
ba8acf46 91pagas
57d32184 92patch
d42563da 93prms
3c8735af 94rcs
a93b3c77 95readline
4e0c2de7 96sed
00d8b290 97send-pr
4e0c2de7 98shellutils
da7e4b5c 99sim
17519312 100tcl
4e0c2de7
DZ
101textutils
102tk
c9b36b5f 103test-build.mk
d239963b 104texinfo
14bed8ee 105tgas
ba8acf46 106utils
fa64be8d 107uudecode
4e0c2de7
DZ
108wdiff
109xiberty
a93b3c77 110
87756e15
RP
111Things-to-lose:
112
43e36dd2
RP
113# The lines between the "Do-last:" line and the end of the file
114# are executed as a /bin/sh shell script after everything else is
115# done.
116
a93b3c77
RP
117Do-last:
118
7b85349f
RP
119if ( echo $* | egrep verbose > /dev/null ) ; then
120 verbose=true
121else
122 verbose=
123fi
124
eecef7ef
FF
125# Remove "sanitize-Sanitize" lines.
126if [ -n "${verbose}" ] ; then
127 echo Cleaning unconditional sanitizations out of Makefile.in...
128fi
129cp Makefile.in new
130sed '/start\-sanitize\-Sanitize/,/end-\sanitize\-Sanitize/d' < Makefile.in > new
131if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
132 mv Makefile.in .Recover
133fi
134mv new Makefile.in
135
7b85349f
RP
136if [ -n "${verbose}" ] ; then
137 echo Looking for signs of \"v9\"...
138fi
eebff21c
JG
139
140# Don't try to clean directories here, as the 'mv' command will fail.
141# Also, grep fails on NFS mounted directories.
142if ( echo $* | grep keep\-v9 > /dev/null ) ; then
143 for i in * ; do
144 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
7b85349f
RP
145 if [ -n "${verbose}" ] ; then
146 echo Keeping v9 stuff in $i
147 fi
eebff21c
JG
148 fi
149 done
150else
151 for i in * ; do
152 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
7b85349f
RP
153 if [ -n "${verbose}" ] ; then
154 echo Cleaning the \"v9\" out of $i...
155 fi
e00efef1 156 cp $i new
eebff21c
JG
157 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
158 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
159 mv $i .Recover
160 fi
161 mv new $i
eebff21c
JG
162 fi
163 done
164fi
165
7b85349f
RP
166if [ -n "${verbose}" ] ; then
167 echo Thawing away the \"chill\"...
168fi
5d4ec851
FF
169
170# Don't try to clean directories here, as the 'mv' command will fail.
171# Also, grep fails on NFS mounted directories.
172if ( echo $* | grep keep\-chill > /dev/null ) ; then
173 for i in * ; do
174 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
7b85349f
RP
175 if [ -n "${verbose}" ] ; then
176 echo Keeping chill stuff in $i
177 fi
5d4ec851
FF
178 fi
179 done
180else
181 for i in * ; do
182 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
7b85349f
RP
183 if [ -n "${verbose}" ] ; then
184 echo Thawing the \"chill\" out of $i...
185 fi
5d4ec851
FF
186 cp $i new
187 sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
188 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
7b85349f
RP
189 if [ -n "${verbose}" ] ; then
190 echo Caching $i in .Recover...
191 fi
5d4ec851
FF
192 mv $i .Recover
193 fi
194 mv new $i
195 fi
196 done
5d4ec851
FF
197fi
198
5db7ecb7
SS
199if [ -n "${verbose}" ] ; then
200 echo Removing traces of \"mpw\"...
201fi
202
203# Don't try to clean directories here, as the 'mv' command will fail.
204# Also, grep fails on NFS mounted directories.
205if ( echo $* | grep keep\-mpw > /dev/null ) ; then
206 for i in * ; do
207 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
208 if [ -n "${verbose}" ] ; then
209 echo Keeping mpw stuff in $i
210 fi
211 fi
212 done
213else
214 for i in * ; do
215 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
216 if [ -n "${verbose}" ] ; then
217 echo Removing traces of \"mpw\" from $i...
218 fi
219 cp $i new
220 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
221 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
222 if [ -n "${verbose}" ] ; then
223 echo Caching $i in .Recover...
224 fi
225 mv $i .Recover
226 fi
227 mv new $i
228 fi
229 done
230fi
231
e11b54be
PB
232for i in * ; do
233 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
7b85349f 234 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
e11b54be
PB
235 fi
236done
57d32184
RP
237
238# eof
This page took 0.119034 seconds and 4 git commands to generate.