From 20c1907adbc96eae5966b88c5512f757a45dda14 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 7 Apr 2015 10:48:31 -0700 Subject: When building from tar file, check .gitversion to get the correct version Distribution builds on Linux tend to be made from tar files, not from git trees. Signed-off-by: Dirk Hohndel --- scripts/get-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get-version b/scripts/get-version index eb93a3322..27f02f640 100755 --- a/scripts/get-version +++ b/scripts/get-version @@ -19,7 +19,7 @@ if [ $# -eq 2 ] && [ "$2" ]; then v0=$2 else cmd="git describe --tags --abbrev=12" - v0=$($cmd) || croak "odd; command '$cmd' failed" + v0=$($cmd) || v0=$(cat .gitversion) || croak "odd; command '$cmd' failed" fi # strip off the 'v' prefix, if any -- cgit v1.2.3-70-g09d2