-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_opensim.sh
executable file
·60 lines (44 loc) · 1.17 KB
/
build_opensim.sh
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
52
53
54
55
56
57
58
59
#!/bin/bash
CONFIGPATH=./config
OPNSIMPATH=../bin
echo "=============================================="
echo "Rebuild OpenSim for Secure DTL/NSL_CURRENCY"
echo "=============================================="
function xbuild_opensim()
{
./runprebuild.sh vs2010
xbuild /target:CLean
xbuild || return 1
cd opensim.currency
./build.sh
cd ..
if [ -d opensim.modules ]; then
cd opensim.modules
./build.sh || return 1
cd ..
fi
}
if [ "$1" != '-R' ]; then
#
if [ ! -f ../bin/HttpServer_OpenSim.dll.orig ]; then
mv ../bin/HttpServer_OpenSim.dll ../bin/HttpServer_OpenSim.dll.orig
fi
cp -f HttpServer_OpenSim/bin/HttpServer_OpenSim.dll ../bin
cd ..
PCHK=`grep "request.IHttpClientContext.SSLCommonName" OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs`
if [ "$PCHK" = "" ]; then
patch -p1 < ./opensim.currency/patch/opensim.patch || exit 1
fi
xbuild_opensim || exit 1
#
else
#
if [ -f ../bin/HttpServer_OpenSim.dll.orig ]; then
rm -f ../bin/HttpServer_OpenSim.dll
mv ../bin/HttpServer_OpenSim.dll.orig ../bin/HttpServer_OpenSim.dll
fi
cd ..
patch -p1 -R < ./opensim.currency/patch/opensim.patch || exit 1
xbuild_opensim || exit 1
#
fi