projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d96a6ed
)
fix wscript to handle git revision ID that consists of just MAJOR.MINOR, as will...
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 28 May 2014 19:53:25 +0000
(15:53 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 28 May 2014 19:53:36 +0000
(15:53 -0400)
wscript
patch
|
blob
|
history
diff --git
a/wscript
b/wscript
index 12997e7f82a9942e64bddcd4c169657cf4f05977..ca69bcde3dd32ae0bf8fb47577c603cbb4aea47d 100644
(file)
--- a/
wscript
+++ b/
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
#