Fix
[ryzomcore.git] / ryzom / client / macosx / upgd_nl.sh
blobcae698a696661039817ecb8daba74bedf6049463
1 #!/bin/sh
3 if [ -z "$ROOTPATH" ]
4 then
5 echo "upgd_nl.sh can only be launched from updt_nl.sh"
6 exit 1
7 fi
9 # determine directory where all files reside
10 CONTENTSPATH=$(dirname "$ROOTPATH")
11 MACOSPATH=$(dirname "$RYZOM_CLIENT")
12 SIGNPATH=$CONTENTSPATH/_CodeSignature
14 # all files of original Bundle are in the same directory
15 # we have to uncompress them to the right location
17 # client_default.cfg and ryzom.icns are already in the right location
19 # uncompress Ryzom
20 if [ -e "$ROOTPATH/Ryzom.zip" ]
21 then
22 unzip -o "$ROOTPATH/Ryzom.zip" -d "$CONTENTSPATH/../.."
25 # only uncompress Ryzom Installer if found in parent directory
26 if [ -e "$ROOTPATH/RyzomInstaller.zip" ] && [ -d "$CONTENTSPATH/../../../Ryzom Installer.app" ]
27 then
28 rm -rf "$CONTENTSPATH/../../../Ryzom Installer.app"
29 unzip -o "$ROOTPATH/RyzomInstaller.zip" -d "$CONTENTSPATH/../../.."
32 exit 0