-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·43 lines (33 loc) · 1.02 KB
/
build.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
#!/bin/bash
CONFIGPATH=./config
OPNSIMPATH=../bin
echo "==================="
echo "DTL/NSL_CURRENCY"
echo "==================="
./clean.sh
./runprebuild.sh
xbuild /target:CLean || exit 1
#xbuild || exit 1
xbuild /p:Configuration=Release || exit 1
echo
cp -f bin/OpenSim.Data.MySQL.MySQLMoneyDataWrapper.dll $OPNSIMPATH
cp -f bin/OpenSim.Modules.Currency.dll $OPNSIMPATH
cp -f bin/MoneyServer.exe $OPNSIMPATH
#
rm -f $OPNSIMPATH/OpenSim.Forge.Currency.dll
if [ ! -f $OPNSIMPATH/MoneyServer.ini ]; then
cp $CONFIGPATH/MoneyServer.ini $OPNSIMPATH
else
cp $CONFIGPATH/MoneyServer.ini $OPNSIMPATH/MoneyServer.ini.example
fi
if [ ! -f $OPNSIMPATH/MoneyServer.exe.config ]; then
cp $CONFIGPATH/MoneyServer.exe.config $OPNSIMPATH
fi
# Sample Server Cert file 1 for MoneyServer.exe
if [ ! -f $OPNSIMPATH/SineWaveCert.pfx ]; then
cp $CONFIGPATH/SineWaveCert.pfx $OPNSIMPATH
fi
# Sample Server Cert file 2 (JOGRID.NET) for MoneyServer.exe. No password
if [ ! -f $OPNSIMPATH/server_cert.p12 ]; then
cp $CONFIGPATH/server_cert.p12 $OPNSIMPATH
fi