summaryrefslogtreecommitdiff
path: root/build/bmaketests
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-19 15:49:45 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-19 15:49:45 +0300
commitb30a5d2289a0b68410dee5343e148aba88ea4839 (patch)
tree9d756785b9166ced76675ad3ebe398c09b494a3c /build/bmaketests
parent9a3a196dbf633a699c26d0227802a42f025c8bfd (diff)
parent164e4ed5a153ce06badb52f3a5a4dff16c58d7e6 (diff)
downloadmanaplus-b30a5d2289a0b68410dee5343e148aba88ea4839.tar.gz
manaplus-b30a5d2289a0b68410dee5343e148aba88ea4839.tar.bz2
manaplus-b30a5d2289a0b68410dee5343e148aba88ea4839.tar.xz
manaplus-b30a5d2289a0b68410dee5343e148aba88ea4839.zip
Merge branch 'master' into stripped
Diffstat (limited to 'build/bmaketests')
-rwxr-xr-xbuild/bmaketests79
1 files changed, 79 insertions, 0 deletions
diff --git a/build/bmaketests b/build/bmaketests
new file mode 100755
index 000000000..e1d980a98
--- /dev/null
+++ b/build/bmaketests
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+cd ..
+
+dir=`pwd`
+
+export CC=gcc-4.5
+export CXX=g++-4.5
+
+export LANG=C
+export CXXFLAGS="-Wunreachable-code -Wmissing-field-initializers \
+-Wabi -Wdisabled-optimization -Wuninitialized \
+-Wvolatile-register-var -Winvalid-pch -Wredundant-decls \
+-Wnormalized=nfkc -Wmissing-format-attribute -Wmissing-noreturn \
+-Wswitch-default -Wsign-promo -Waddress -Wmissing-declarations \
+-Wctor-dtor-privacy -Wstrict-null-sentinel \
+-Wunused-parameter -Wlogical-op \
+-Wempty-body -Wsign-compare -Wclobbered -Wcast-align -Wcast-qual \
+-Wtype-limits -Wpointer-arith -Wundef -Wmissing-include-dirs \
+-Wignored-qualifiers -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe \
+-Wpacked -Wshadow -Wunused -Wsynth \
+-Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \
+-Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \
+-Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2"
+
+autoreconf -i 2>../build/make.log
+
+result=$?
+if [ "$result" != 0 ]; then
+ echo autoreconf error
+ exit 1
+fi
+
+./configure --prefix=$dir/run \
+--datadir=$dir/run/share/games \
+--bindir=$dir/run/bin \
+--mandir=$dir/run/share/man \
+--enable-memdebug=yes \
+--with-internalguichan=yes \
+--enable-tcmalloc=no \
+--enable-googleprofiler=no \
+--enable-unittests=yes
+
+result=$?
+if [ "$result" != 0 ]; then
+ echo configure error
+ exit 1
+fi
+
+cd po
+#make -j5 update-po 2>../make1.log
+make -j5 update-gmo 2>../build/make1.log
+
+result=$?
+if [ "$result" != 0 ]; then
+ echo update-gmo error
+ exit 1
+fi
+
+cd ..
+make -j5 2>build/make2.log
+
+result=$?
+if [ "$result" != 0 ]; then
+ echo make error
+ exit 1
+fi
+
+make install
+
+result=$?
+if [ "$result" != 0 ]; then
+ echo make install error
+ exit 1
+fi
+
+cd run
+export GLIBCXX_FORCE_NEW=1
+./bin/manaplus