Update release scripts v1.5.0
authorEric Biggers <ebiggers3@gmail.com>
Sun, 1 Sep 2013 21:32:12 +0000 (16:32 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 1 Sep 2013 21:32:12 +0000 (16:32 -0500)
make-releases [new file with mode: 0755]
make-windows-release [moved from make-windoze-release with 90% similarity]
update-version [moved from make-release with 100% similarity]

diff --git a/make-releases b/make-releases
new file mode 100755 (executable)
index 0000000..e82012b
--- /dev/null
@@ -0,0 +1,10 @@
+#!/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
similarity index 90%
rename from make-windoze-release
rename to make-windows-release
index fc981fa..022767e 100755 (executable)
@@ -7,6 +7,12 @@ if [ $# -ge 1 ]; then
        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
@@ -20,7 +26,8 @@ VERSION=$(grep 'This is wimlib version' README | grep -o '[0-9]\+\.[0-9]\+\.[0-9
 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
similarity index 100%
rename from make-release
rename to update-version