khanat-opennel-code/code/ryzom/client/macosx/upgd_nl.sh

39 lines
998 B
Bash
Raw Normal View History

2016-02-28 15:36:46 +00:00
#!/bin/sh
if [ -z "$ROOTPATH" ]
then
echo "upgd_nl.sh can only be launched from updt_nl.sh"
exit 1
fi
# determine directory where all files reside
CONTENTSPATH=$(dirname "$ROOTPATH")
2016-10-31 21:46:39 +00:00
MACOSPATH=$(dirname "$KHANAT_CLIENT")
2016-02-28 15:36:46 +00:00
SIGNPATH=$CONTENTSPATH/_CodeSignature
# all files of original Bundle are in the same directory
2016-10-16 15:38:37 +00:00
# we have to uncompress them to the right location
2016-02-28 15:36:46 +00:00
2016-11-07 16:11:05 +00:00
# client_default.cfg and khanat.icns are already in the right location
2016-02-28 15:36:46 +00:00
2016-10-16 15:38:37 +00:00
# uncompress Ryzom
if [ -e "$ROOTPATH/Ryzom.zip" ]
then
2016-10-17 14:51:01 +00:00
unzip -o "$ROOTPATH/Ryzom.zip" -d "$CONTENTSPATH/../.."
2016-10-16 15:38:37 +00:00
fi
2016-10-31 21:46:39 +00:00
chmod +x "$ROOTPATH/Khanat"
chmod +x "$ROOTPATH/KhanatClientPatcher"
chmod +x "$ROOTPATH/KhanatConfiguration"
rm -f "$MACOSPATH/Khanat"
rm -f "$MACOSPATH/KhanatClientPatcher"
rm -f "$MACOSPATH/KhanatConfiguration"
2016-02-28 15:36:46 +00:00
2016-10-16 15:38:37 +00:00
# only uncompress Ryzom Installer if found in parent directory
2016-10-31 21:46:39 +00:00
cp -p "$ROOTPATH/Khanat" "$MACOSPATH"
2016-10-16 15:38:37 +00:00
then
2016-10-31 21:46:39 +00:00
cp -p "$ROOTPATH/KhanatClientPatcher" "$MACOSPATH"
cp -p "$ROOTPATH/KhanatConfiguration" "$MACOSPATH"
2016-10-16 15:38:37 +00:00
fi
2016-02-28 15:36:46 +00:00
exit 0