From: xonotic Date: Thu, 18 Mar 2010 13:43:57 +0000 (+0100) Subject: add a simple data downloader X-Git-Tag: xonotic-v0.1.0preview~556 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=9da4a2e8ab3de5b91456aa43c855434ee7330322;ds=inline add a simple data downloader --- diff --git a/download-data.sh b/download-data.sh new file mode 100755 index 00000000..e914ce0a --- /dev/null +++ b/download-data.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +case "$1" in + local) + base=ssh://gitolite + ;; + ssh) + base=ssh://xonotic@git.xonotic.org + ;; + git) + base=git://git.xonotic.org/xonotic + ;; + http) + base=http://git.xonotic.org/~xonotic + ;; + *) + echo "Usage: $0 transport, where transport might be local, ssh, git or http" + exit 1 + ;; +esac + +mkdir -p data +git clone "$base/xonotic-data.pk3dir" data/xonotic-data.pk3dir +git clone "$base/xonotic-maps.pk3dir" data/xonotic-maps.pk3dir +git clone "$base/xonotic-music.pk3dir" data/xonotic-music.pk3dir