summaryrefslogtreecommitdiff
path: root/cpp/makebindist.py
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2005-11-11 20:40:11 +0000
committerBrent Eagles <brent@zeroc.com>2005-11-11 20:40:11 +0000
commit5135b3364d5e92252727faf0306aa3aba9e3d752 (patch)
tree02fe0e7f75390845d38da915c819720e6086d46c /cpp/makebindist.py
parentFreeze Map improvements (bug #415) (diff)
downloadice-5135b3364d5e92252727faf0306aa3aba9e3d752.tar.bz2
ice-5135b3364d5e92252727faf0306aa3aba9e3d752.tar.xz
ice-5135b3364d5e92252727faf0306aa3aba9e3d752.zip
fixes
Diffstat (limited to 'cpp/makebindist.py')
-rwxr-xr-xcpp/makebindist.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/makebindist.py b/cpp/makebindist.py
index ee41a2e9d12..6b2a5c06d72 100755
--- a/cpp/makebindist.py
+++ b/cpp/makebindist.py
@@ -245,6 +245,7 @@ endif
makefile.close()
def updateIceVersion(filename, version):
+ print 'Updating ice version in ' + filename + ' to ' + version
f = fileinput.input(filename, True)
for line in f:
print line.rstrip('\n').replace('ICE_VERSION', version)
@@ -290,6 +291,9 @@ def extractDemos(sources, buildDir, version, distro, demoDir):
if not os.path.isdir(f) and not os.path.islink(f):
shutil.copy(src, dest)
+ if demoDir == 'j':
+ updateIceVersion(os.path.join(destConfigDir, 'common.xml'), version)
+
#
# Collect files to remove from the demo distribution.
#
@@ -381,9 +385,7 @@ def makeInstall(sources, buildDir, installDir, distro, clean, version):
destDir = os.path.join(installDir, 'config')
if not os.path.exists(destDir):
os.mkdir(destDir)
- shutil.copy(os.path.join('config', 'common.xml'), destDir)
shutil.copy(os.path.join('config', 'build.properties'), destDir)
- updateIceVersion(os.path.join(destDir, 'common.xml'), version)
os.chdir(cwd)
return