opensim-tools – Rev

Subversion Repositories:
Rev:
#!/bin/bash
###########################################################################
##  Copyright (C) Wizardry and Steamworks 2012 - License: GNU GPLv3      ##
##  Please see: http://www.gnu.org/licenses/gpl.html for legal details,  ##
##  rights of fair usage, the disclaimer and warranty conditions.        ##
###########################################################################

pushd ./
cd ../opensim/
echo "[OpenSim] Updating sources..."
/usr/bin/svn update
echo "[OpenSim] Cleaning..."
PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean
echo "[OpenSim] Build..."
PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make
echo "[OpenSim] Copying files..."
mkdir -p /home/opensim/os
find bin/ -name \*.ini -exec rm -rf '{}' \;
find bin/ -name \*.config -exec rm -rf '{}' \;
cp -Ra bin/* /home/opensim/os/
echo "[OpenSim] Changing ownership..."
chown -R opensim:opensim /home/opensim/os/
echo "[OpenSim] Restarting OpenSim."
kill -s HUP `pidof mono`
echo "[OpenSim] Done."
popd