Files
opensim.currency/build.sh
T
2023-12-20 10:03:33 +09:00

44 lines
1.0 KiB
Bash
Executable File

#!/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