opensim-tools

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 47  →  ?path2? @ 48
/lib/upgrade-spectacled-owl
@@ -8,12 +8,38 @@
PATH=/opt/mono-4-0/bin:$PATH
 
dialog --msgbox "This tool will upgrade the Spectacled Owl machine." 10 70
 
# Spectaced Owl upgrade
if [ -f lib/install-packages.txt ] && [ -f lib/uninstall-packages.txt ]; then
dialog --yesno "By selecting yes here, the Spectacled Owl will install or remove packages essential for OpenSim from the virtual machine. You should say yes here unless you have made major changes to the Spectacled Owl machine. Would you like to process the list of packages to install or remove?" 10 70
if [ $? == "0" ]; then
# Update repositories
aptitude update
aptitude upgrade
# Remove packages
cat lib/uninstall-packages.txt | while read p; do
PACKAGE=`dpkg -l | grep $p | head -1 | awk '{ print $2 }'`
if [ $PACKAGE == "$p" ]; then
aptitude purge $p
fi
done
# Install packages
cat lib/install-packages.txt | while read i; do
PACKAGE=`dpkg -l | grep $i | head -1 | awk '{ print $2 }'`
if [ $PACKAGE != "$i" ]; then
aptitude install $i
fi
done
fi
fi
 
# OpenSim upgrade
pushd ./
if [ -d ../opensim-sources/ ]; then
cd ../opensim-sources/
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
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