From 78d49f51549a7f23b36e61ac09e6c9dfccfeb395 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 11 Apr 2013 07:11:58 +1000 Subject: Add release number to version strings. --- linden/scripts/viewer_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linden') 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: self.major = re.search('MAJOR\s*=\s*(\d+)', data).group(1) self.minor = re.search('MINOR\s*=\s*(\d+)', data).group(1) self.patch = re.search('PATCH\s*=\s*(\d+)', data).group(1) + self.release = re.search('RLEAS\s*=\s*(\d+)', data).group(1) self.extra = re.search('EXTRA\s*=\s*"([^"]*)"', data).group(1) self.bundle_id = re.search('BUNDLE_ID\s*=\s*"([^"]*)"', data).group(1) - self.version = "%s.%s.%s"%(self.major, self.minor, self.patch) + self.version = "%s.%s.%s.%s"%(self.major, self.minor, self.patch, self.release) if len(self.extra) > 0: # Replace spaces and some puncuation with '-' in extra extra = re.sub('[- \t:;,!+/\\"\'`]+', '-', self.extra) -- cgit v1.1