summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorjkoan <jkoan@users.noreply.github.com>2018-10-24 20:22:53 +0200
committerGitHub <noreply@github.com>2018-10-24 20:22:53 +0200
commit554f78038867637a48b86471f395ab4105b750f0 (patch)
treebe078c17a968ada207c50a5705371a3099b8a36a /scripts
parent546d4300e907d7152a961c18daaea580e25765a3 (diff)
downloadnavit-554f78038867637a48b86471f395ab4105b750f0.tar.gz
Remove unnecessary if else constructs and nixpastejkoan-clean-win32
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build_win32.sh25
1 files changed, 4 insertions, 21 deletions
diff --git a/scripts/build_win32.sh b/scripts/build_win32.sh
index 6e42d6ed4..993c0273f 100644
--- a/scripts/build_win32.sh
+++ b/scripts/build_win32.sh
@@ -1,34 +1,17 @@
#!/usr/bin/env bash
set -e
-export nixpaste="curl -F 'text=<-' http://nixpaste.lbr.uno"
apt-get update && apt-get install -y mingw-w64 mingw-w64-tools \
default-jdk nsis libsaxonb-java curl
mkdir win32
pushd win32
-if ! cmake -Dbinding/python:BOOL=FALSE -DSAMPLE_MAP=n -DBUILD_MAPTOOL=n \
- -DXSLTS=windows -DCMAKE_TOOLCHAIN_FILE=../Toolchain/mingw32.cmake ../
-then
- find .
- #nixpaste < ./CMakeFiles/CMakeError.log
- exit 1
-fi
-if ! make -j $(nproc --all)
-then
- echo "make"
- make -d
- nixpaste < ./Makefile || cat ./Makefile
- exit 1
-fi
+cmake -Dbinding/python:BOOL=FALSE -DSAMPLE_MAP=n -DBUILD_MAPTOOL=n \
+ -DXSLTS=windows -DCMAKE_TOOLCHAIN_FILE=../Toolchain/mingw32.cmake ..
+make -j $(nproc --all)
+make -j $(nproc --all) package
-if ! make -j $(nproc --all) package
-then
- echo "make package"
- nixpaste < ./Makefile
- exit 1
-fi
popd
cp win32/*.exe $CIRCLE_ARTIFACTS/