blob: 65d4a2e7b7cdf695a261207b048a81385eeab3cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/bin/bash
Usage()
{
echo "usage: $0 dotnet11|dotnet20|mono release-number (e.g. 2.0.1)"
exit 2
}
if [[ $# -ne 2 ]]; then
Usage
fi
dotNetVersion=$1
releaseName=Qpid.NET-$2-$dotNetVersion
if [[ $dotNetVersion == "dotnet11" ]]; then
binDir=Qpid.Client.Tests/bin/FX1_1/Release
elif [[ $dotNetVersion == "dotnet20" ]]; then
binDir=qpid.client.tests/bin/Release
elif [[ $dotNetVersion == "mono" ]]; then
binDir=build/mono
else
Usage
fi
binFilesToRelease="
Qpid.Buffer.dll
Qpid.Client.Transport.Socket.Blocking.dll
Qpid.Client.dll
Qpid.Codec.dll
Qpid.Common.dll
Qpid.Messaging.dll
log4net.dll"
filesToRelease="
LICENCE.txt
NOTICE.txt"
releaseDir=build/release/$releaseName
mkdir -p $releaseDir
for file in $binFilesToRelease; do
cp $binDir/$file $releaseDir
done
for file in $filesToRelease; do
cp $file $releaseDir
done
cd build/release
jar -cvMf $releaseName.zip $releaseName
|