From 4b4b953cb2b72c6dec78238ff95718c71abccb22 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 21 Mar 2020 14:41:09 +0100 Subject: mkwinbins.sh: don't hard code version number Use the same trick as the coverity script. Signed-off-by: David Oberhollenzer --- mkwinbins.sh | 6 ++++-- 1 file 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" -- cgit v1.2.3