]> wimlib.net Git - wimlib/blob - tools/get-version-number
mount_image.c: add fallback definitions of RENAME_* constants
[wimlib] / tools / get-version-number
1 #!/bin/sh
2
3 # Get the version number of the project to use in the release filenames
4 # and in the --version output.
5
6 vers=$(git describe --abbrev=8 --dirty --always 2>/dev/null | \
7        sed 's/^v//')
8 if [ -z "$vers" ]; then
9         # Fallback for people who use autoreconf on tarball releases
10         vers="1.13.4"
11 fi
12 echo "$vers"