opensim-tools
/lib/upgrade-spectacled-owl |
@@ -6,7 +6,6 @@ |
########################################################################### |
|
dialog --msgbox "This tool will upgrade the Spectacled Owl machine." 10 70 |
|
pushd ./ |
if [ -d ../opensim-sources/ ]; then |
cd ../opensim-sources/ |
@@ -13,19 +12,20 @@ |
echo "[SpectacledOwl] Updating sources..." |
svn update |
dialog --yesno "By slecting 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 |
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/ |
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 |
fi |
if [ -d ../opensim-config/ ]; then |