Update build-w32.sh - fix an issue where the build script would always exit even if no error occurred when downloading/compiling mxe

This commit is contained in:
neoh4x0r 2017-05-06 08:44:48 +00:00 committed by darkrose
parent 02ff1cc7eb
commit 794c5e4b48
1 changed files with 4 additions and 4 deletions

View File

@ -5,15 +5,15 @@ export DIR=`pwd`
# First, download and compile the cross-compiler
if [ ! -e mxe ]; then
git clone -b master git://github.com/mxe/mxe.git || echo "Failed to download mxe.git.....exiting" && exit
git clone -b master git://github.com/mxe/mxe.git || (echo "Failed to download mxe.git.....exiting" && exit)
else
cd mxe && git pull || echo "Failed to update mxe.git.....exiting" && exit
cd mxe && git pull || (echo "Failed to update mxe.git.....exiting" && exit)
cd $DIR
fi
cd mxe
git checkout master || echo "Failed to checkout mxe.git/master....exiting" && exit
make $MAKEFLAGS gcc || echo "mxe failed to compile.....exiting" && exit
git checkout master || (echo "Failed to checkout mxe.git/master....exiting" && exit)
make $MAKEFLAGS gcc || (echo "mxe failed to compile.....exiting" && exit)
cd $DIR
# environment variables for cross-compiling