summaryrefslogtreecommitdiff
path: root/cpp/iceemakedist.py
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-05-03 22:36:54 +0000
committerBernard Normier <bernard@zeroc.com>2007-05-03 22:36:54 +0000
commit2bb20cb25cb84a6658327761d5fc3b94d0c1a17e (patch)
treeaefe348de622e29c9d70da8fb041c942907a203c /cpp/iceemakedist.py
parenticee updates (diff)
downloadice-2bb20cb25cb84a6658327761d5fc3b94d0c1a17e.tar.bz2
ice-2bb20cb25cb84a6658327761d5fc3b94d0c1a17e.tar.xz
ice-2bb20cb25cb84a6658327761d5fc3b94d0c1a17e.zip
Fixed bug #2160
Diffstat (limited to 'cpp/iceemakedist.py')
-rwxr-xr-xcpp/iceemakedist.py29
1 files changed, 15 insertions, 14 deletions
diff --git a/cpp/iceemakedist.py b/cpp/iceemakedist.py
index 7b16b83c6f6..9871c4f3caa 100755
--- a/cpp/iceemakedist.py
+++ b/cpp/iceemakedist.py
@@ -182,7 +182,10 @@ else:
os.system("cvs " + quiet + " -d cvs.zeroc.com:/home/cvsroot export -l " + tag + " " +
"ice " +
"ice/bin " +
- "ice/config " +
+ "ice/config/Make.rules.icee " +
+ "ice/config/Make.rules.mak.icee " +
+ "ice/config/Make.rules.Linux " +
+ "ice/config/Make.rules.msvc " +
"ice/include " +
"ice/include/IceUtil " +
"ice/include/Slice " +
@@ -209,6 +212,12 @@ shutil.copyfile(os.path.join("ice", "install", "icee", "INSTALL.LINUX"), os.path
shutil.copyfile(os.path.join("ice", "install", "icee", "INSTALL.WINDOWS"), os.path.join("ice", "INSTALL.WINDOWS"))
#
+# Move Make.rules*icee
+#
+shutil.move(os.path.join("ice", "config", "Make.rules.icee"), os.path.join("ice", "config", "Make.rules"))
+shutil.move(os.path.join("ice", "config", "Make.rules.mak.icee"), os.path.join("ice", "config", "Make.rules.mak"))
+
+#
# Remove files.
#
print "Removing unnecessary files..."
@@ -296,15 +305,10 @@ for x in scanners:
config = open(os.path.join("icee", "include", "IceE", "Config.h"), "r")
version = re.search("ICEE_STRING_VERSION \"([0-9\.]*)\"", config.read()).group(1)
-#
-# Comment out the implicit parser and scanner rules in
-# config/Make.rules.
-#
+
print "Fixing makefiles..."
-#
-# Enable STATICLIBS and OPTIMIZE in config/Make.rules.
-#
+
for makeRulesName in [os.path.join("ice", "config", "Make.rules"), \
os.path.join("ice", "config", "Make.rules.mak")]:
fixMakeRules(makeRulesName)
@@ -312,16 +316,13 @@ for makeRulesName in [os.path.join("ice", "config", "Make.rules"), \
lines = makeRules.readlines()
makeRules.close()
for i in range(len(lines)):
- if lines[i].find("#STATICLIBS") == 0:
- lines[i] = lines[i].replace("#STATICLIBS", "STATICLIBS")
- if lines[i].find("#OPTIMIZE") == 0:
- lines[i] = lines[i].replace("#OPTIMIZE", "OPTIMIZE")
if lines[i].find("prefix") == 0:
- lines[i] = lines[i].replace("Ice-$(VERSION)", "IceE-" + version)
+ lines[i] = lines[i].replace("IceE-$(VERSION)", "IceE-" + version)
makeRules = open(makeRulesName, "w")
makeRules.writelines(lines)
makeRules.close()
+
#
# Change SUBDIRS and INSTALL_SUBDIRS in top-level Makefile.
#
@@ -364,7 +365,7 @@ for makeFileName in [os.path.join("ice", "src", "IceUtil", "Makefile"), \
makeFile.close()
#
-# Fix versions in READE and INSTALL files.
+# Fix versions in README and INSTALL files.
#
print "Fixing version in README and INSTALL files..."
fixVersion(find("ice", "README*"), version)