aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/scripts
diff options
context:
space:
mode:
authorJacek Antonelli2008-11-02 23:36:52 -0600
committerJacek Antonelli2008-11-02 23:36:52 -0600
commitc355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3 (patch)
tree07925216eaf1ff3a7d4858b95815bda800a3c6f3 /linden/scripts
parentUse Imprudence icon on Linux. (diff)
downloadmeta-impy-c355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3.zip
meta-impy-c355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3.tar.gz
meta-impy-c355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3.tar.bz2
meta-impy-c355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3.tar.xz
Script finds Imprudence version numbers for packaging.
Diffstat (limited to 'linden/scripts')
-rwxr-xr-xlinden/scripts/build_version.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/linden/scripts/build_version.py b/linden/scripts/build_version.py
index 4bef290..46587e8 100755
--- a/linden/scripts/build_version.py
+++ b/linden/scripts/build_version.py
@@ -20,16 +20,14 @@ def get_version(filename):
20 fp.close() 20 fp.close()
21 21
22 vals = {} 22 vals = {}
23 m = re.search('const S32 LL_VERSION_MAJOR = (\d+);', data) 23 m = re.search('const S32 IMP_VERSION_MAJOR = (\d+);', data)
24 vals['major'] = m.group(1) 24 vals['major'] = m.group(1)
25 m = re.search('const S32 LL_VERSION_MINOR = (\d+);', data) 25 m = re.search('const S32 IMP_VERSION_MINOR = (\d+);', data)
26 vals['minor'] = m.group(1) 26 vals['minor'] = m.group(1)
27 m = re.search('const S32 LL_VERSION_PATCH = (\d+);', data) 27 m = re.search('const S32 IMP_VERSION_PATCH = (\d+);', data)
28 vals['patch'] = m.group(1) 28 vals['patch'] = m.group(1)
29 m = re.search('const S32 LL_VERSION_BUILD = (\d+);', data)
30 vals['build'] = m.group(1)
31 29
32 return "%(major)s.%(minor)s.%(patch)s.%(build)s" % vals 30 return "%(major)s.%(minor)s.%(patch)s" % vals
33 31
34if __name__ == '__main__': 32if __name__ == '__main__':
35 import sys 33 import sys