opensim-tools – Diff between revs 42 and 48

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 42 Rev 48
Line 6... Line 6...
6 ########################################################################### 6 ###########################################################################
Line 7... Line 7...
7   7  
Line 8... Line 8...
8 PATH=/opt/mono-4-0/bin:$PATH 8 PATH=/opt/mono-4-0/bin:$PATH
-   9  
-   10 dialog --msgbox "This tool will upgrade the Spectacled Owl machine." 10 70
-   11  
-   12 # Spectaced Owl upgrade
-   13 if [ -f lib/install-packages.txt ] && [ -f lib/uninstall-packages.txt ]; then
-   14 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
-   15 if [ $? == "0" ]; then
-   16 # Update repositories
-   17 aptitude update
-   18 aptitude upgrade
-   19 # Remove packages
-   20 cat lib/uninstall-packages.txt | while read p; do
-   21 PACKAGE=`dpkg -l | grep $p | head -1 | awk '{ print $2 }'`
-   22 if [ $PACKAGE == "$p" ]; then
-   23 aptitude purge $p
-   24 fi
-   25 done
-   26 # Install packages
-   27 cat lib/install-packages.txt | while read i; do
-   28 PACKAGE=`dpkg -l | grep $i | head -1 | awk '{ print $2 }'`
-   29 if [ $PACKAGE != "$i" ]; then
-   30 aptitude install $i
-   31 fi
-   32 done
-   33 fi
-   34 fi
9   35  
10 dialog --msgbox "This tool will upgrade the Spectacled Owl machine." 10 70 36 # OpenSim upgrade
11 pushd ./ 37 pushd ./
12 if [ -d ../opensim-sources/ ]; then 38 if [ -d ../opensim-sources/ ]; then
13 cd ../opensim-sources/ 39 cd ../opensim-sources/
14 echo "[SpectacledOwl] Updating sources..." 40 echo "[SpectacledOwl] Updating sources..."
15 svn update 41 svn update
16 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 42 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
17 if [ $? == "0" ]; then 43 if [ $? == "0" ]; then
18 echo "[SpectacledOwl] Cleaning..." 44 echo "[SpectacledOwl] Cleaning..."
19 PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean 45 PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean