From 00940489ba4e9892a1e4154ed89b438fb603e5bf Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 14 May 2016 22:39:17 -0500 Subject: [PATCH] make-windows-release: allow extra configure args on command line This is useful for testing with --enable-test-support. --- tools/make-windows-release | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/make-windows-release b/tools/make-windows-release index 6bee2af3..660e1470 100755 --- a/tools/make-windows-release +++ b/tools/make-windows-release @@ -10,8 +10,8 @@ if [ ! -e src/wim.c ]; then exit 1 fi -if [ $# -ne 1 ]; then - echo "Usage: $0 i686|x86_64" 1>&2 +if [ $# -lt 1 ]; then + echo "Usage: $0 i686|x86_64 [EXTRA_CONFIGURE_ARG]..." 1>&2 exit 1 fi @@ -44,7 +44,8 @@ fi # Compile wimlib if ! grep -q "./configure --host=${ARCH}-w64-mingw32" config.log || \ - ! grep -q "configure: exit 0" config.log + ! grep -q "configure: exit 0" config.log || \ + [ $# -gt 0 ] then extra_args= if [ $ARCH = x86_64 ]; then @@ -59,7 +60,7 @@ then LDFLAGS="-L$SYSROOT/lib" \ PKG_CONFIG_PATH="$SYSROOT/lib/pkgconfig" \ --without-libcrypto \ - $extra_args + $extra_args "$@" $MAKE clean fi $MAKE -- 2.43.0