File: get-version-number.sh

package info (click to toggle)
wimlib 1.14.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,156 kB
  • sloc: ansic: 49,930; sh: 7,578; makefile: 293
file content (12 lines) | stat: -rwxr-xr-x 317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Get the version number of the project to use in the release filenames
# and in the --version output.

vers=$(git describe --abbrev=8 --dirty --always 2>/dev/null | \
       sed 's/^v//')
if [ -z "$vers" ]; then
	# Fallback for people who use autoreconf on tarball releases
	vers="1.14.5"
fi
echo "$vers"