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:
parent
02ff1cc7eb
commit
794c5e4b48
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue