Skip to content

Commit df86c6d

Browse files
author
Vlad Ionescu
committed
client examples are not mentioned one by one in dist.sh; source zip now contains rabbitmq-dotnet-client-N.N.N folder in root
1 parent b5ed19c commit df86c6d

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

dist.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ function src-dist {
171171
links -dump $RABBIT_WEBSITE/build-dotnet-client.html >> tmp/srcdist/README
172172
cp-license-to tmp/srcdist/
173173

174-
### Zip tmp/srcdist
174+
### Zip tmp/srcdist making $NAME_VSN the root dir in the archive
175+
mv tmp/srcdist tmp/$NAME_VSN
176+
mkdir tmp/srcdist
177+
mv tmp/$NAME_VSN tmp/srcdist/
175178
cd tmp/srcdist
176179
zip -r ../../$RELEASE_DIR/$NAME_VSN.zip . -x \*.snk \*.resharper \*.csproj.user
177180
cd ../..
@@ -212,15 +215,9 @@ function dist-target-framework {
212215

213216
### Copy bin files to be zipped to tmp/dist/
214217
cp projects/client/RabbitMQ.Client/build/bin/RabbitMQ.Client.dll tmp/dist/bin/
215-
cp projects/examples/client/AddClient/build/bin/AddClient.exe tmp/dist/bin/
216-
cp projects/examples/client/AddServer/build/bin/AddServer.exe tmp/dist/bin/
217-
cp projects/examples/client/DeclareQueue/build/bin/DeclareQueue.exe tmp/dist/bin/
218-
cp projects/examples/client/ExceptionTest/build/bin/ExceptionTest.exe tmp/dist/bin/
219-
cp projects/examples/client/LogTail/build/bin/LogTail.exe tmp/dist/bin/
220-
cp projects/examples/client/LowlevelLogTail/build/bin/LowlevelLogTail.exe tmp/dist/bin/
221-
cp projects/examples/client/SendMap/build/bin/SendMap.exe tmp/dist/bin/
222-
cp projects/examples/client/SendString/build/bin/SendString.exe tmp/dist/bin/
223-
cp projects/examples/client/SingleGet/build/bin/SingleGet.exe tmp/dist/bin/
218+
for example in $(ls projects/examples/client); do
219+
cp projects/examples/client/$example/build/bin/$example.exe tmp/dist/bin/
220+
done
224221
test "$BUILD_WCF" && cp projects/wcf/RabbitMQ.ServiceModel/build/bin/RabbitMQ.ServiceModel.dll tmp/dist/bin/
225222
cp-license-to tmp/dist/
226223

0 commit comments

Comments
 (0)