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