opensim-tools

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 57  →  ?path2? @ 58
/lib/upgrade-spectacled-owl
@@ -43,26 +43,28 @@
# OpenSim upgrade
pushd ./
if [ -d ../opensim-sources/ ]; then
cd ../opensim-sources/
echo "[SpectacledOwl] Updating sources..."
svn update
dialog --yesno "By selecting yes here, the OpenSim sources will be updated from the development repository, compiled and added to the current OpenSim working directory. Selecting yes here will not affect any modifications you may have done to OpenSim's ini files. Upgrade the OpenSim binaries to the lastest development version?" 10 70
if [ $? == "0" ]; then
echo "[SpectacledOwl] Cleaning..."
PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean
echo "[SpectacledOwl] Build..."
PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make
if [ -d /home/opensim/os ]; then
echo "[SpectacledOwl] 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 "[SpectacledOwl] Changing ownership..."
chown -R opensim:opensim /home/opensim/os/
fi
rm -rf ../opensim-sources
fi
cd ../
echo "[SpectacledOwl] Updating sources..."
svn co http://svn.was.fm/opensim opensim-sources
dialog --yesno "By selecting yes here, the OpenSim sources will be updated from the development repository, compiled and added to the current OpenSim working directory. Selecting yes here will not affect any modifications you may have done to OpenSim's ini files. Upgrade the OpenSim binaries to the lastest development version?" 10 70
if [ $? == "0" ]; then
echo "[SpectacledOwl] Cleaning..."
PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean
echo "[SpectacledOwl] Build..."
PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make
if [ -d /home/opensim/os ]; then
echo "[SpectacledOwl] 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 "[SpectacledOwl] Changing ownership..."
chown -R opensim:opensim /home/opensim/os/
fi
fi
 
if [ -d ../opensim-config/ ]; then
cd ../opensim-config/
svn update