summaryrefslogtreecommitdiff
path: root/mkwinbins.sh
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-21 14:41:09 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-22 23:30:28 +0100
commit4b4b953cb2b72c6dec78238ff95718c71abccb22 (patch)
tree4866ef2f944a4b4d2df5b1b003961febe64eb78f /mkwinbins.sh
parent5c2c983e285d710461294296b4d00f791756f5c7 (diff)
mkwinbins.sh: don't hard code version number
Use the same trick as the coverity script. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkwinbins.sh')
-rwxr-xr-xmkwinbins.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/mkwinbins.sh b/mkwinbins.sh
index 0a72d66..0567660 100755
--- a/mkwinbins.sh
+++ b/mkwinbins.sh
@@ -2,8 +2,10 @@
set -e
-W32_ZIP_NAME="squashfs-tools-ng-0.8-mingw32"
-W64_ZIP_NAME="squashfs-tools-ng-0.8-mingw64"
+VERSION=$(grep AC_INIT configure.ac | grep -o \\[[0-9.]*\\] | tr -d [])
+
+W32_ZIP_NAME="squashfs-tools-ng-${VERSION}-mingw32"
+W64_ZIP_NAME="squashfs-tools-ng-${VERSION}-mingw64"
W32_DIR="$(pwd)/$W32_ZIP_NAME"
W32_PREFIX="i686-w64-mingw32"