aboutsummaryrefslogtreecommitdiff
path: root/contrib/get_version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/get_version.sh')
-rwxr-xr-xcontrib/get_version.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/contrib/get_version.sh b/contrib/get_version.sh
deleted file mode 100755
index 2a41ed4d6..000000000
--- a/contrib/get_version.sh
+++ /dev/null
@@ -1,18 +0,0 @@
1#!/bin/sh
2# Gets the version number from git, or from the contents of .version
3VERSION=
4if test -f ".version"
5then
6 VERSION=$(cat .version)
7fi
8if test -d "./.git"
9then
10 VERSION=$(git describe --tags)
11 VERSION=${VERSION#v}
12 echo $VERSION > .version
13fi
14if test "x$VERSION" = "x"
15then
16 VERSION="unknown"
17fi
18echo "$VERSION"