summaryrefslogblamecommitdiff
path: root/nightly/buildlinux.sh
blob: 4fcc828f2077e82f4be0fe8fb43cea2f53f3cdb4 (plain) (tree)
1
2
3
4
5
6
7
8
9



           

                            
                               

             





                                 
    



                           










                               
#!/bin/bash

cd ..

DSTDIR=packaging/build/linux

export CXXFLAGS="-Wall -g0 -O3"
autoreconf -i
#make clean
./configure --enable-portable=yes
result=$?
if [ "$result" != 0 ]; then
    exit $result
fi

make
result=$?
if [ "$result" != 0 ]; then
    exit $result
fi

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