summaryrefslogtreecommitdiff
path: root/.tools/manaplus.sh
blob: fb09bd36baa5f1137f91e1304c4d6e4277074e23 (plain) (blame)
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
#!/bin/bash

source ./.tools/init.sh

clientdata_init

aptget_update
aptget_install gcc g++ \
    make autoconf automake autopoint gettext \
    libxml2-dev libcurl4-gnutls-dev libpng-dev \
    libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev \
    wget unzip

pwd
ls

./client-data/.tools/downloadlib.sh manaplus master || exit 1

export HOME=`pwd`/client-data/shared

cd manaplus_master || exit 1
export SDL_VIDEODRIVER=dummy
./bin/manaplus --validate -u -d ../client-data || exit 1

ls "${HOME}/.local/share/mana/manaplus.log" || exit 1
grep -A 10 "Assert:" "${HOME}/.local/share/mana/manaplus.log"

if [ "$?" == 0 ]; then
    echo "Asserts found"
    exit 1
fi

cd ..