diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-01-30 22:45:46 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-01-30 22:45:46 +0100 |
commit | c4d19f731dc683c5a65327d99f2b416d4781f00b (patch) | |
tree | 09e8941c5ac840b2a74ca28e5a474b7746e5fe79 /build-aux/build-windows.sh | |
parent | 008c96d6518125f2683c1b4e842ca3ed6e865c3d (diff) | |
parent | 3b0ea0a4908f1702308354ec7cbd8db5c80f87ee (diff) | |
download | blogc-c4d19f731dc683c5a65327d99f2b416d4781f00b.tar.gz blogc-c4d19f731dc683c5a65327d99f2b416d4781f00b.tar.bz2 blogc-c4d19f731dc683c5a65327d99f2b416d4781f00b.zip |
Merge remote-tracking branch 'origin/master' into feature/directives
Diffstat (limited to 'build-aux/build-windows.sh')
-rwxr-xr-x | build-aux/build-windows.sh | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/build-aux/build-windows.sh b/build-aux/build-windows.sh index 267a8aa..bdecc8b 100755 --- a/build-aux/build-windows.sh +++ b/build-aux/build-windows.sh @@ -5,24 +5,18 @@ # # mingw32-gcc mingw64-gcc zip # -# This script must be called with the xz source tarball as argument. +# This script must be called with the xz source tarball and the target version +# as arguments. set -ex -[[ $# -eq 1 ]] - - -get_version() { - local a=$(basename "${1}") - a="${a%.tar.xz}" - echo "${a#blogc-}" -} +[[ $# -eq 2 ]] build() { - local version=$(get_version "${1}") - local arch=${2} + local version=${2} + local arch=${3} local build_dir="/tmp/blogc_build_${version}_${arch}" local dest_dir="/tmp/blogc-${version}-w${arch}" @@ -50,5 +44,5 @@ build() { for arch in 32 64; do - build "$1" "${arch}" + build "$1" "$2" "${arch}" done |