diff options
author | shackra <elcorreo@deshackra.com> | 2014-04-21 00:41:54 -0600 |
---|---|---|
committer | shackra <elcorreo@deshackra.com> | 2014-04-21 00:41:54 -0600 |
commit | ea7b2e2bc0590c72d4950889dd1a678fea339c6b (patch) | |
tree | 70052cffa1387ea7c585682d91af5e6ac19e7e02 /pcr/ryzom-data/ryzomdata-update.sh | |
parent | c50f1e985dedf0c20522d9f958cc5fbac878a167 (diff) |
updating Ryzom (data and client) packages. Adding nel-hg package which contains the NeL engine to build MMORPG and which is required for Ryzom client to work.
Signed-off-by: shackra <elcorreo@deshackra.com>
Diffstat (limited to 'pcr/ryzom-data/ryzomdata-update.sh')
-rwxr-xr-x | pcr/ryzom-data/ryzomdata-update.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/ryzom-data/ryzomdata-update.sh b/pcr/ryzom-data/ryzomdata-update.sh new file mode 100755 index 000000000..ff59cf779 --- /dev/null +++ b/pcr/ryzom-data/ryzomdata-update.sh @@ -0,0 +1,22 @@ +#!/usr/bin/sh +# To the extent possible under law, Jorge Araya Navarro has waived all copyright and related or +# neighboring rights to ryzomdata-update.sh. This work is published from: Costa Rica. + +error() { + printf '\E[31m'; echo "$@"; printf '\E[0m' +} + +if [[ $(id -u) -ne 0 ]] ; then + error "Please run as root" ; + exit 1 ; +fi + +# if running as root, then start the update. +if [ -d "/usr/share/ryzom/data/" ]; then + cd /usr/share/ryzom/data + msg "Updating the official Ryzom game data, this can take a while..." + rsync -rtzvu --progress --stats --recursive --timeout=30 www.ryzom.com::ryzom/data/ ./ + msg 'Update completed...' +else + error "Seems that /usr/share/ryzom/data does not exists. Please install ryzom-data package using pacman." +fi |