diff options
author | Saulc <lucas@debian> | 2018-01-13 19:41:26 +0100 |
---|---|---|
committer | Saulc <lucas@debian> | 2018-01-13 19:41:26 +0100 |
commit | 4c4f4be30bae96e6cd943de326b1a4b1b841dcd4 (patch) | |
tree | a94e0a063e5df2a9f7f84f720982a3bca0c0cf6d /.tools/manaplus.sh | |
download | clientdata-4c4f4be30bae96e6cd943de326b1a4b1b841dcd4.tar.gz clientdata-4c4f4be30bae96e6cd943de326b1a4b1b841dcd4.tar.bz2 clientdata-4c4f4be30bae96e6cd943de326b1a4b1b841dcd4.tar.xz clientdata-4c4f4be30bae96e6cd943de326b1a4b1b841dcd4.zip |
Initial commit
Diffstat (limited to '.tools/manaplus.sh')
-rwxr-xr-x | .tools/manaplus.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.tools/manaplus.sh b/.tools/manaplus.sh new file mode 100755 index 00000000..aeb39a86 --- /dev/null +++ b/.tools/manaplus.sh @@ -0,0 +1,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 + +./clientdata/.tools/downloadlib.sh manaplus master || exit 1 + +export HOME=`pwd`/clientdata/shared + +cd manaplus_master || exit 1 +export SDL_VIDEODRIVER=dummy +./bin/manaplus --validate -u -d ../clientdata || 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 .. |