48
48
# ## Disable sharing files by default (it causes things not to work properly)
49
49
CYGWIN=nontsec
50
50
51
+ . dist-lib.sh
52
+
51
53
# ## Overrideable vars
52
54
test " $KEYFILE " || KEYFILE=rabbit-mock.snk
53
55
test " $RABBIT_VSN " || RABBIT_VSN=0.0.0.0
69
71
DOTNET_PROGRAM_PREPEND=
70
72
fi
71
73
72
- RELEASE_PATTERN=^[0-9]+\. [0-9]+\. [0-9]+$
73
- if [[ $RABBIT_VSN =~ $RELEASE_PATTERN ]] ; then
74
- RABBIT_VSN=$RABBIT_VSN .0
75
- fi
74
+ assembly-version $RABBIT_VSN
76
75
77
76
function main {
78
77
# ## Remove everything in the release dir and create the dir again
@@ -151,15 +150,6 @@ function cp-license-to {
151
150
}
152
151
153
152
154
- function safe-rm-deep-dir {
155
- # ## Workaround for the path-too-long bug in cygwin
156
- if [ -e " $1 " ]; then
157
- mv -f $1 /tmp/del
158
- rm -rf /tmp/del
159
- fi
160
- }
161
-
162
-
163
153
function src-dist {
164
154
# ## Copy files to be zipped to tmp/srcdist/
165
155
mkdir -p tmp/srcdist/docs/specs tmp/srcdist/lib
@@ -181,7 +171,7 @@ function src-dist {
181
171
cd tmp/srcdist
182
172
zip -r ../../$RELEASE_DIR /$NAME_VSN .zip . -x \* .snk \* .resharper \* .csproj.user
183
173
cd ../..
184
-
174
+
185
175
# ## Remove tmp/srcdist
186
176
rm -rf tmp/srcdist
187
177
}
@@ -215,7 +205,7 @@ function dist-target-framework {
215
205
216
206
# ## Build
217
207
$MSBUILD RabbitMQDotNetClient.sln /t:Build /property:Configuration=" Release"
218
-
208
+
219
209
# ## Copy bin files to be zipped to tmp/dist/
220
210
cp projects/client/RabbitMQ.Client/build/bin/RabbitMQ.Client.xml tmp/dist/bin/
221
211
cp projects/client/RabbitMQ.Client/build/bin/RabbitMQ.Client.dll tmp/dist/bin/
@@ -224,15 +214,15 @@ function dist-target-framework {
224
214
done
225
215
test " $BUILD_WCF " && cp projects/wcf/RabbitMQ.ServiceModel/build/bin/RabbitMQ.ServiceModel.dll tmp/dist/bin/
226
216
cp-license-to tmp/dist/
227
-
217
+
228
218
# ## Zip tmp/dist
229
219
cd tmp/dist
230
220
zip -r ../../$RELEASE_DIR /$NAME_VSN -$TARGET_FRAMEWORK .zip .
231
221
cd ../..
232
222
233
223
# ## Remove tmp/dist
234
224
rm -rf tmp/dist
235
-
225
+
236
226
# ## Restore Local.props
237
227
rm -f ./Local.props
238
228
test " $LOCAL_PROPS_EXISTS " && mv ./Local.props.user ./Local.props || true
@@ -244,7 +234,7 @@ function gen-props {
244
234
else
245
235
USING_MONO=" false"
246
236
fi
247
- sed -e " s:@VERSION@:$RABBIT_VSN :g" \
237
+ sed -e " s:@VERSION@:$ASSEMBLY_VSN :g" \
248
238
-e " s:@KEYFILE@:$KEYFILE :g" \
249
239
-e " s:@USINGMONO@:$USING_MONO :g" \
250
240
< $1 > $2
@@ -266,14 +256,14 @@ function gendoc-dist {
266
256
267
257
cd $PROJECT_DIR
268
258
269
- # ## Generate XMLs with ndocproc
259
+ # ## Generate XMLs with ndocproc
270
260
$DOTNET_PROGRAM_PREPEND $RELATIVE_DIR /lib/ndocproc-bin/bin/ndocproc.exe \
271
261
/nosubtypes \
272
262
$EXTRA_NDOCPROC_ARGS \
273
263
$RELATIVE_DIR /tmp/gendoc/xml \
274
264
$XML_SOURCE_FILE \
275
265
$RELATIVE_DIR /docs/namespaces.xml
276
-
266
+
277
267
cd $RELATIVE_DIR
278
268
279
269
# ## Zip ndocproc's output
@@ -282,17 +272,17 @@ function gendoc-dist {
282
272
zip -r ../../../$RELEASE_DIR /$ZIP_TMP_XML_DOC_FILENAME .
283
273
cd ../../..
284
274
fi
285
-
275
+
286
276
# ## Transform to html, using xsltproc
287
277
genhtml index index
288
278
genhtml namespace- namespace
289
279
genhtml type- type
290
-
280
+
291
281
# ## Remove generated XMLs and copy remaining files to be added to the .zip
292
282
rm -rf tmp/gendoc/xml
293
283
cp lib/ndocproc-bin/xsl/style.css tmp/gendoc/html/
294
284
cp-license-to tmp/gendoc/
295
-
285
+
296
286
# ## Zip tmp/gendoc
297
287
cd tmp/gendoc
298
288
zip -r ../../$RELEASE_DIR /$ZIP_DESTINATION_FILENAME .
0 commit comments