summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2003-05-13 22:42:58 +0000
committerBernard Normier <bernard@zeroc.com>2003-05-13 22:42:58 +0000
commit95585eed4e2c33a8f0f438103d00eb2c2aca1466 (patch)
treeaff7fa263f360daa20ea3100e0509136e9cad3a7 /cpp/config/TestUtil.py
parentfix NullPointerException (diff)
downloadice-95585eed4e2c33a8f0f438103d00eb2c2aca1466.tar.bz2
ice-95585eed4e2c33a8f0f438103d00eb2c2aca1466.tar.xz
ice-95585eed4e2c33a8f0f438103d00eb2c2aca1466.zip
Updated Unix versioning scheme, and updated current version to 1.1.0
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index 1d509d58f79..3e21a1d7702 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -50,6 +50,13 @@ def getIceVersion():
config = open(os.path.join(toplevel, "include", "IceUtil", "Config.h"), "r")
return re.search("ICE_STRING_VERSION \"([0-9\.]*)\"", config.read()).group(1)
+def getIceSoVersion():
+ config = open(os.path.join(toplevel, "include", "IceUtil", "Config.h"), "r")
+ intVersion = int(re.search("ICE_INT_VERSION ([0-9]*)", config.read()).group(1))
+ majorVersion = intVersion / 10000
+ minorVersion = intVersion / 100 - 100 * majorVersion
+ return '%d' % (majorVersion * 10 + minorVersion)
+
def isCygwin():
# The substring on sys.platform is required because some cygwin