opensim-tools – Diff between revs 29 and 30
?pathlinks?
Rev 29 | Rev 30 | |||
---|---|---|---|---|
Line 4... | Line 4... | |||
4 | ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
4 | ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
|
5 | ## rights of fair usage, the disclaimer and warranty conditions. ## |
5 | ## rights of fair usage, the disclaimer and warranty conditions. ## |
|
6 | ########################################################################### |
6 | ########################################################################### |
|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | dialog --msgbox "This tool will upgrade the Spectacled Owl machine." 10 70 |
- | ||
9 | |
8 | dialog --msgbox "This tool will upgrade the Spectacled Owl machine." 10 70 |
|
10 | pushd ./ |
9 | pushd ./ |
|
11 | if [ -d ../opensim-sources/ ]; then |
10 | if [ -d ../opensim-sources/ ]; then |
|
12 | cd ../opensim-sources/ |
11 | cd ../opensim-sources/ |
|
13 | echo "[SpectacledOwl] Updating sources..." |
12 | echo "[SpectacledOwl] Updating sources..." |
|
14 | svn update |
13 | svn update |
|
15 | 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 |
14 | 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 |
|
16 | if [ ?$ == "0" ]; then |
15 | if [ $? == "0" ]; then |
|
17 | echo "[SpectacledOwl] Cleaning..." |
16 | echo "[SpectacledOwl] Cleaning..." |
|
18 | PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean |
17 | PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean |
|
19 | echo "[SpectacledOwl] Build..." |
18 | echo "[SpectacledOwl] Build..." |
|
20 | PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make |
19 | PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make |
|
21 | if [ -d /home/opensim/os ]; then |
20 | if [ -d /home/opensim/os ]; then |
|
22 | echo "[SpectacledOwl] Copying files..." |
21 | echo "[SpectacledOwl] Copying files..." |
|
23 | mkdir -p /home/opensim/os |
22 | mkdir -p /home/opensim/os |
|
24 | find bin/ -name \*.ini -exec rm -rf '{}' \; |
23 | find bin/ -name \*.ini -exec rm -rf '{}' \; |
|
25 | find bin/ -name \*.config -exec rm -rf '{}' \; |
24 | find bin/ -name \*.config -exec rm -rf '{}' \; |
|
26 | cp -Ra bin/* /home/opensim/os/ |
25 | cp -Ra bin/* /home/opensim/os/ |
|
27 | echo "[SpectacledOwl] Changing ownership..." |
26 | echo "[SpectacledOwl] Changing ownership..." |
|
- | 27 | chown -R opensim:opensim /home/opensim/os/ |
||
28 | chown -R opensim:opensim /home/opensim/os/ |
28 | fi |
|
29 | fi |
29 | fi |
|
30 | fi |
30 | fi |
|
31 | if [ -d ../opensim-config/ ]; then |
31 | if [ -d ../opensim-config/ ]; then |
|
32 | cd ../opensim-config/ |
32 | cd ../opensim-config/ |