]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - .travis-before_install-xonotic.sh
Merge PR 'Make particles solid squares when cl_particles_quake is set to 2'
[xonotic/darkplaces.git] / .travis-before_install-xonotic.sh
1 #!/bin/sh
2
3 set -ex
4
5 export USRLOCAL="$PWD"/usrlocal
6 mkdir "$USRLOCAL"
7
8 for os in "$@"; do
9   git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \
10     --prefix=".deps/${os}/" master:"misc/builddeps/${os}" | tar xvf -
11
12   case "$os" in
13     linux32)
14       wget https://www.libsdl.org/release/SDL2-2.0.10.tar.gz
15       tar xf SDL2-2.0.10.tar.gz
16       (
17       cd SDL2-2.0.10
18       export CC="gcc -m32"
19       i386 ./configure --enable-static --disable-shared --prefix="$USRLOCAL" \
20         --enable-video-x11-xinput --enable-video-x11-xrandr ||\ cat config.log
21       i386 make
22       i386 make install
23       )
24       ;;
25     linux64)
26       wget https://www.libsdl.org/release/SDL2-2.0.10.tar.gz
27       tar xf SDL2-2.0.10.tar.gz
28       (
29       cd SDL2-2.0.10
30       ./configure --enable-static --disable-shared --prefix="$USRLOCAL" \
31         --enable-video-x11-xinput --enable-video-x11-xrandr ||\ cat config.log
32       make
33       make install
34       )
35       ;;
36     win32)
37       git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \
38         --prefix=".icons/" master:"misc/logos/icons_ico" | tar xvf -
39       mv .icons/xonotic.ico darkplaces.ico
40       ;;
41     win64)
42       git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \
43         --prefix=".icons/" master:"misc/logos/icons_ico" | tar xvf -
44       mv .icons/xonotic.ico darkplaces.ico
45       ;;
46     osx)
47       git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \
48         --prefix=SDL2.framework/ master:misc/buildfiles/osx/Xonotic.app/Contents/Frameworks/SDL2.framework | tar xvf -
49       ;;
50   esac
51 done
52
53 for X in .deps/*; do
54   rsync --remove-source-files -aL "$X"/*/ "$X"/ || true
55 done