File: .travis-before_install-xonotic.sh

package info (click to toggle)
darkplaces 0~20180412~beta1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,200 kB
  • sloc: ansic: 176,886; makefile: 485; pascal: 455; perl: 372; objc: 245; sh: 102
file content (53 lines) | stat: -rwxr-xr-x 1,579 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh

set -ex

export USRLOCAL="$PWD"/usrlocal
mkdir "$USRLOCAL"

for os in "$@"; do
  git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \
    --prefix=".deps/${os}/" master:"misc/builddeps/${os}" | tar xvf -

  case "$os" in
    linux32)
      wget https://www.libsdl.org/release/SDL2-2.0.5.tar.gz
      tar xf SDL2-2.0.5.tar.gz
      (
      cd SDL2-2.0.5
      export CC="gcc -m32"
      i386 ./configure --enable-static --disable-shared --prefix="$USRLOCAL" || cat config.log
      i386 make
      i386 make install
      )
      ;;
    linux64)
      wget https://www.libsdl.org/release/SDL2-2.0.5.tar.gz
      tar xf SDL2-2.0.5.tar.gz
      (
      cd SDL2-2.0.5
      ./configure --enable-static --disable-shared --prefix="$USRLOCAL"
      make
      make install
      )
      ;;
    win32)
      git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \
        --prefix=".icons/" master:"misc/logos/icons_ico" | tar xvf -
      mv .icons/xonotic.ico darkplaces.ico
      ;;
    win64)
      git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \
        --prefix=".icons/" master:"misc/logos/icons_ico" | tar xvf -
      mv .icons/xonotic.ico darkplaces.ico
      ;;
    osx)
      git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \
        --prefix=SDL2.framework/ master:misc/buildfiles/osx/Xonotic.app/Contents/Frameworks/SDL2.framework | tar xvf -
      ;;
  esac
done

for X in .deps/*; do
  rsync --remove-source-files -aL "$X"/*/ "$X"/ || true
done