mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
fix top level wscript for case when building in a git repository and current rev matches a tag precisely
This commit is contained in:
parent
514a0c3e93
commit
f47eda68ce
1 changed files with 5 additions and 1 deletions
6
wscript
6
wscript
|
|
@ -30,13 +30,17 @@ else:
|
|||
|
||||
#
|
||||
# rev is now of the form MAJOR.MINOR-rev-commit
|
||||
# or, if right at the same rev as a release, MAJOR.MINOR
|
||||
#
|
||||
|
||||
parts = rev.split ('.')
|
||||
MAJOR = parts[0]
|
||||
other = parts[1].split ('-')
|
||||
MINOR = other[0]
|
||||
MICRO = other[1]
|
||||
if len(other) > 1:
|
||||
MICRO = other[1]
|
||||
else:
|
||||
MICRO = '0'
|
||||
|
||||
V = MAJOR + '.' + MINOR + '.' + MICRO
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue