summaryrefslogtreecommitdiff
path: root/cpp/fixVersion.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-10-30 19:25:09 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-10-30 19:25:09 +0000
commitfb321fef679a9e5428dde8ab3ed43088f94587bf (patch)
tree49274f8bc890f8cb1f465581038883d79bee9244 /cpp/fixVersion.py
parentFixed install targets (diff)
downloadice-fb321fef679a9e5428dde8ab3ed43088f94587bf.tar.bz2
ice-fb321fef679a9e5428dde8ab3ed43088f94587bf.tar.xz
ice-fb321fef679a9e5428dde8ab3ed43088f94587bf.zip
Added Ruby + some new CS stuff
Diffstat (limited to 'cpp/fixVersion.py')
-rwxr-xr-xcpp/fixVersion.py29
1 files changed, 28 insertions, 1 deletions
diff --git a/cpp/fixVersion.py b/cpp/fixVersion.py
index 410f5e61a41..92ab055c84b 100755
--- a/cpp/fixVersion.py
+++ b/cpp/fixVersion.py
@@ -225,6 +225,15 @@ if not patchIceE:
fileMatchAndReplace(os.path.join(icecs_home, "config", "Make.rules.mak"),
[("VERSION[\t\s]*= ([0-9]*\.[0-9]*\.[0-9]*)", version)])
+ fileMatchAndReplace(os.path.join(icecs_home, "config", "makeconfig.py"),
+ [("version=*\"([0-9]*\.[0-9]*\.[0-9]*).0\"", version)])
+
+ #
+ # Above command causes makeconfig.py to lose execute permissions
+ #
+ cmd = "chmod 770 " + os.path.join(icecs_home, "config", "makeconfig.py")
+ os.system(cmd)
+
for f in find(icecs_home, "*.pc"):
fileMatchAndReplace(f, [("[\t\s]*version[\t\s]*=[\t\s]*([0-9]*\.[0-9]*\.[0-9]*)", version)])
@@ -252,7 +261,25 @@ if not patchIceE:
("VERSION_MINOR[\t\s]*= ([0-9]*)", minorVersion(version)),
("VERSION_PATCH[\t\s]*= ([0-9]*)", patchVersion(version))])
- print "Make sure to run 'make config' in icecs!"
+ #
+ # Fix version in IcePy
+ #
+ icerb_home = findSourceTree("icerb", os.path.join("src", "IceRuby", "Config.h"))
+ if icerb_home:
+ fileMatchAndReplace(os.path.join(icerb_home, "config", "Make.rules"),
+ [("VERSION[\t\s]*= ([0-9]*\.[0-9]*\.[0-9]*)", version),
+ ("SOVERSION[\t\s]*= ([0-9]*)", soVersion(version))])
+
+ fileMatchAndReplace(os.path.join(icerb_home, "config", "Make.rules.mak"),
+ [("VERSION_MAJOR[\t\s]*= ([0-9]*)", majorVersion(version)),
+ ("VERSION_MINOR[\t\s]*= ([0-9]*)", minorVersion(version)),
+ ("VERSION_PATCH[\t\s]*= ([0-9]*)", patchVersion(version))])
+
+ print "Running 'make config' in IceCS"
+ os.chdir(icecs_home)
+ result = os.system('gmake config')
+ if result != 0:
+ print "\'gmake config\' failed!!!"
sys.exit(0)
#