aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJosé Pekkarinen <jose.pekkarinen@nokia.com>2016-03-14 19:02:16 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-03-18 11:50:43 +0300
commit73392bf66c00442d627c10b72bbb97e2196d0488 (patch)
tree01b8cba1e67d302e5a8f724895fbd972c7ff2b90 /scripts
parent779200d9f9463c2ffef5dabeaef6f960046ec809 (diff)
generate scmversion based in numeric tags
This change generate the .scmversion file based in the numeric tag, instead of the named one, fixing the output of the configure script summary in the opendataplane line and library version line. Signed-off-by: José Pekkarinen <jose.pekkarinen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/git_hash.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/git_hash.sh b/scripts/git_hash.sh
index ccd62ab15..6ba265e33 100755
--- a/scripts/git_hash.sh
+++ b/scripts/git_hash.sh
@@ -7,7 +7,7 @@ fi
ROOTDIR=${1}
if [ -d ${ROOTDIR}/.git ]; then
- hash=$(git --git-dir=${ROOTDIR}/.git describe | tr -d "\n")
+ hash=$(git --git-dir=${ROOTDIR}/.git describe --match 'v?\.?\.?\.?' | tr -d "\n")
if [[ $(git --git-dir=${ROOTDIR}/.git diff --shortstat 2> /dev/null \
| tail -n1) != "" ]]; then
dirty=.dirty