]> git.xonotic.org Git - xonotic/xonotic.git/blob - download-data.sh
add a simple data downloader
[xonotic/xonotic.git] / download-data.sh
1 #!/bin/sh
2
3 set -e
4
5 case "$1" in
6         local)
7                 base=ssh://gitolite
8                 ;;
9         ssh)
10                 base=ssh://xonotic@git.xonotic.org
11                 ;;
12         git)
13                 base=git://git.xonotic.org/xonotic
14                 ;;
15         http)
16                 base=http://git.xonotic.org/~xonotic
17                 ;;
18         *)
19                 echo "Usage: $0 transport, where transport might be local, ssh, git or http"
20                 exit 1
21                 ;;
22 esac
23
24 mkdir -p data
25 git clone "$base/xonotic-data.pk3dir" data/xonotic-data.pk3dir
26 git clone "$base/xonotic-maps.pk3dir" data/xonotic-maps.pk3dir
27 git clone "$base/xonotic-music.pk3dir" data/xonotic-music.pk3dir