X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=make-windows-release;h=298b37cb9c94605e31cc04684830693286eac47d;hp=317d0a8835ffcb351120f8b39d1feed367bce658;hb=7839aa1d5f4983cc0c716219548237f7fca7f1a3;hpb=43c7e5cbee8918367f94965ebb498aff680908cf diff --git a/make-windows-release b/make-windows-release index 317d0a88..298b37cb 100755 --- a/make-windows-release +++ b/make-windows-release @@ -1,16 +1,11 @@ #!/bin/bash -set -e -u +set -e WIMLIB_ARCH=i686 if [ $# -ge 1 ]; then WIMLIB_ARCH=$1 -fi - -if [ $# -ge 2 ]; then - CONF_EXTRA_ARGS="$2" -else - CONF_EXTRA_ARGS= + shift fi if [[ $WIMLIB_ARCH = i686 ]] ; then @@ -22,12 +17,14 @@ else exit 2 fi +CONF_EXTRA_ARGS=("$@") + VERSION=$(grep 'This is wimlib version' README | \ grep -o '\<[0-9]\+\.[0-9]\+\.[0-9]\+\(-BETA\)\?\>') ZIPFILE=wimlib-${VERSION}-windows-${WIMLIB_ARCH}-bin.zip if ! grep -q "./configure --host=${WIMLIB_ARCH}-w64-mingw32" config.log; then - ./configure --host=${WIMLIB_ARCH}-w64-mingw32 $CONF_EXTRA_ARGS + ./configure --host=${WIMLIB_ARCH}-w64-mingw32 "${CONF_EXTRA_ARGS[@]}" make clean fi