summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMax Vilimpoc <max@vilimpoc.org>2016-06-03 18:15:56 +0200
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-03 09:15:56 -0700
commite47fe86d5d7b0dd104c39be4b9e110363bd75248 (patch)
treeb342243d48f47594cd65263a9ad0ed7e06598de6 /scripts
parentc11ccd0587c489b7466e6e5cc88bbfbd7dce0782 (diff)
downloadqtlocation-mapboxgl-e47fe86d5d7b0dd104c39be4b9e110363bd75248.tar.gz
Ensure version tag always has 3 parts. (#5225)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-version.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build-version.py b/scripts/build-version.py
index a39639007d..800d3f6220 100755
--- a/scripts/build-version.py
+++ b/scripts/build-version.py
@@ -43,6 +43,12 @@ else:
tag = DEFAULT_TAG
rev = DEFAULT_REV
+tag = tag + [0, 0, 0]
+tag = tag[0:3]
+
+print "Tag: {0}".format(tag)
+print "Rev: {0}".format(rev)
+
header = """// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.
#pragma once