From 835db97c56850ad0ee9084c2b1f792f51006ae9b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 28 Mar 2011 20:37:00 +0300 Subject: Add nightly build scripts. --- nightly/buildlinux.sh | 22 ++++++++++++++++++++++ nightly/buildwindows.sh | 18 ++++++++++++++++++ nightly/runme.sh | 6 ++++++ 3 files changed, 46 insertions(+) create mode 100755 nightly/buildlinux.sh create mode 100755 nightly/buildwindows.sh create mode 100755 nightly/runme.sh (limited to 'nightly') diff --git a/nightly/buildlinux.sh b/nightly/buildlinux.sh new file mode 100755 index 000000000..78ac6a4c1 --- /dev/null +++ b/nightly/buildlinux.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +cd .. + +DIR=`pwd` +DSTDIR=packaging/build/linux + +autoreconf -i +#make clean +./configure +make + +if [ -e src/manaplus ]; +then + strip src/manaplus + rm -rf $DSTDIR + mkdir -p $DSTDIR + cp -r data $DSTDIR + mkdir -p $DSTDIR/bin + cp src/manaplus $DSTDIR/bin + cp nightly/runme.sh $DSTDIR +fi diff --git a/nightly/buildwindows.sh b/nightly/buildwindows.sh new file mode 100755 index 000000000..ede9f0f04 --- /dev/null +++ b/nightly/buildwindows.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +dir=`pwd` + +cd .. +export PATH=/usr/i586-mingw32msvc/bin:$PATH +CXXFLAGS="-Wall -g0 -O2" cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain.nightly . + +make -j5 2>make.log + +cd ./packaging/windows +./make-translations.sh +makensis -DDLLDIR=$dir/../packaging/windows/libs/dll/ \ + -DPRODUCT_VERSION="nightly-$1" \ + -DEXESUFFIX=/src \ + -DUPX=true \ + setup.nsi + diff --git a/nightly/runme.sh b/nightly/runme.sh new file mode 100755 index 000000000..5f3f4abe8 --- /dev/null +++ b/nightly/runme.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +DIR=$(dirname "$(readlink -f $0)") +cd "$DIR" +export LD_LIBRARY_PATH="$DIR"/libs/:$LD_LIBRARY_PATH +./bin/manaplus -- cgit v1.2.3-70-g09d2