aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-04-11 07:11:58 +1000
committerDavid Walter Seikel2013-04-11 07:11:58 +1000
commit78d49f51549a7f23b36e61ac09e6c9dfccfeb395 (patch)
tree7e1ca71d54d7aa35871d66ca23d58822979c04f4 /linden
parentLast of the unused variables goes bye. (diff)
downloadmeta-impy-78d49f51549a7f23b36e61ac09e6c9dfccfeb395.zip
meta-impy-78d49f51549a7f23b36e61ac09e6c9dfccfeb395.tar.gz
meta-impy-78d49f51549a7f23b36e61ac09e6c9dfccfeb395.tar.bz2
meta-impy-78d49f51549a7f23b36e61ac09e6c9dfccfeb395.tar.xz
Add release number to version strings.
Diffstat (limited to 'linden')
-rwxr-xr-xlinden/scripts/viewer_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/scripts/viewer_info.py b/linden/scripts/viewer_info.py
index 53ea432..bd0f436 100755
--- a/linden/scripts/viewer_info.py
+++ b/linden/scripts/viewer_info.py
@@ -54,10 +54,11 @@ class ViewerInfo:
54 self.major = re.search('MAJOR\s*=\s*(\d+)', data).group(1) 54 self.major = re.search('MAJOR\s*=\s*(\d+)', data).group(1)
55 self.minor = re.search('MINOR\s*=\s*(\d+)', data).group(1) 55 self.minor = re.search('MINOR\s*=\s*(\d+)', data).group(1)
56 self.patch = re.search('PATCH\s*=\s*(\d+)', data).group(1) 56 self.patch = re.search('PATCH\s*=\s*(\d+)', data).group(1)
57 self.release = re.search('RLEAS\s*=\s*(\d+)', data).group(1)
57 self.extra = re.search('EXTRA\s*=\s*"([^"]*)"', data).group(1) 58 self.extra = re.search('EXTRA\s*=\s*"([^"]*)"', data).group(1)
58 self.bundle_id = re.search('BUNDLE_ID\s*=\s*"([^"]*)"', data).group(1) 59 self.bundle_id = re.search('BUNDLE_ID\s*=\s*"([^"]*)"', data).group(1)
59 60
60 self.version = "%s.%s.%s"%(self.major, self.minor, self.patch) 61 self.version = "%s.%s.%s.%s"%(self.major, self.minor, self.patch, self.release)
61 if len(self.extra) > 0: 62 if len(self.extra) > 0:
62 # Replace spaces and some puncuation with '-' in extra 63 # Replace spaces and some puncuation with '-' in extra
63 extra = re.sub('[- \t:;,!+/\\"\'`]+', '-', self.extra) 64 extra = re.sub('[- \t:;,!+/\\"\'`]+', '-', self.extra)