--- /dev/null
+#!/bin/bash
+
+set -e -u
+
+MINGW_COMPILER_DIR=/mnt/btrfs/fedora-2013-08-23/bin
+
+./configure && make distcheck
+for arch in i686 x86_64; do
+ ./make-windows-release ${arch} CC=${MINGW_COMPILER_DIR}/${arch}-w64-mingw32-gcc
+done
WIMLIB_ARCH=$1
fi
+if [ $# -ge 2 ]; then
+ CONF_EXTRA_ARGS="$2"
+else
+ CONF_EXTRA_ARGS=
+fi
+
if [[ $WIMLIB_ARCH = i686 ]] ; then
DESTDIR=/mnt/tmp/wimlib
elif [[ $WIMLIB_ARCH = x86_64 ]]; then
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
+ ./configure --host=${WIMLIB_ARCH}-w64-mingw32 $CONF_EXTRA_ARGS
+ make clean
fi
make -j2