configure.ac: generate version number from git commit and tags
[wimlib] / tools / make-windows-release
index 3bd8e47240c51c1d83f21da70705de56ca70561b..5f5da584d9e9ad536fce974e5dcc97e0e33ff4c8 100755 (executable)
@@ -27,8 +27,7 @@ i686|x86_64)
        ;;
 esac
 
-VERSION=$(grep 'AC_INIT' configure.ac | \
-         grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+[^]]*')
+VERSION=$(tools/get-version-number)
 DESTDIR=wimlib-${VERSION}-windows-${ARCH}-bin
 ZIPFILE=wimlib-${VERSION}-windows-${ARCH}-bin.zip
 MAKE="make -j $(grep -c processor /proc/cpuinfo)"