opensim-tools – Blame information for rev 17

Subversion Repositories:
Rev:
Rev Author Line No. Line
15 eva 1 #!/bin/bash
2 ###########################################################################
3 ## Copyright (C) Wizardry and Steamworks 2013 - License: GNU GPLv3 ##
4 ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ##
5 ## rights of fair usage, the disclaimer and warranty conditions. ##
6 ###########################################################################
7  
17 eva 8 echo "[SpectacledOwl] Updating tools..."
15 eva 9 svn update
10 pushd ./
11 if [ -d ../opensim-sources ]; then
12 cd ../opensim-sources/
17 eva 13 echo "[SpectacledOwl] Updating sources..."
15 eva 14 svn update
17 eva 15 echo "[SpectacledOwl] Cleaning..."
15 eva 16 PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean
17 eva 17 echo "[SpectacledOwl] Build..."
15 eva 18 PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make
19 if [ -d /home/opensim/os ]; then
17 eva 20 echo "[SpectacledOwl] Copying files..."
15 eva 21 mkdir -p /home/opensim/os
22 find bin/ -name \*.ini -exec rm -rf '{}' \;
23 find bin/ -name \*.config -exec rm -rf '{}' \;
24 cp -Ra bin/* /home/opensim/os/
17 eva 25 echo "[SpectacledOwl] Changing ownership..."
15 eva 26 chown -R opensim:opensim /home/opensim/os/
27 fi
28 fi
29 if [ -d ../opensim-config ]; then
17 eva 30 echo "[SpectacledOwl] Updating configuration..."
15 eva 31 cd ../opensim-config/
32 svn update
33 cp -Ra * /home/opensim/os/
34 fi
35 if [ -d /var/opensim-www ]; then
17 eva 36 echo "[SpectacledOwl] Updating website..."
15 eva 37 cd /var/opensim-www/
38 svn update
39 chown -R www-data:www-data /var/opensim-www
40 service lighttpd restart
41 fi
17 eva 42 popd
43 echo "[SpectacledOwl] Deploying tools..."
16 eva 44 if [ -x osstrap ]; then
45 cp osstrap /etc/init.d/osstrap
46 fi
47 if [ -x iardumper ]; then
48 cp iardumper /etc/cron.daily/iardumper
49 fi
17 eva 50 echo "[SpectacledOwl] Applying firewall..."
16 eva 51 if [ -x firewall ]; then
52 ./firewall
53 fi
17 eva 54 echo "[SpectacledOwl] Restarting SpectacledOwl."
15 eva 55 kill -s HUP `pidof mono`
17 eva 56 echo "[SpectacledOwl] Done."