summaryrefslogtreecommitdiff
path: root/py/makebindist.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-11-17 02:42:37 +0000
committerMark Spruiell <mes@zeroc.com>2004-11-17 02:42:37 +0000
commit60f1c09302f28f86769f3d0994c55e4323869a59 (patch)
tree8eb60dbf7bc465dab4c307eefdc2cbadeeaddd2a /py/makebindist.py
parentremove makebindist (diff)
downloadice-60f1c09302f28f86769f3d0994c55e4323869a59.tar.bz2
ice-60f1c09302f28f86769f3d0994c55e4323869a59.tar.xz
ice-60f1c09302f28f86769f3d0994c55e4323869a59.zip
more fixes
Diffstat (limited to 'py/makebindist.py')
-rwxr-xr-xpy/makebindist.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/py/makebindist.py b/py/makebindist.py
index 8c93b4e9ed0..2b25fd25645 100755
--- a/py/makebindist.py
+++ b/py/makebindist.py
@@ -101,9 +101,9 @@ else:
print "unknown platform (" + sys.platform + ")!"
sys.exit(1)
-#if not os.path.exists(os.path.join("python", "Ice_BuiltinSequences_ice.py")):
-# print "makebindist.py must be run in a compiled IcePy tree"
-# sys.exit(1)
+if not os.path.exists(os.path.join("python", "Ice_BuiltinSequences_ice.py")):
+ print "makebindist.py must be run in a compiled IcePy tree"
+ sys.exit(1)
#
# Save the current directory.
@@ -123,6 +123,7 @@ cwd = os.getcwd()
#
# Export sources from CVS.
#
+print "Checking out CVS tag " + tag + "..."
if verbose:
quiet = ""
else:
@@ -203,6 +204,7 @@ shutil.rmtree(os.path.join("icepy", "modules"))
#
# Copy executables and libraries.
#
+print "Copying executables and libraries..."
icehome = os.environ["ICE_HOME"]
executables = [ ]
libraries = [ ]
@@ -284,19 +286,20 @@ if strip:
#
# Create binary archives.
#
+print "Creating distribution..."
icever = "IcePy-" + version
os.rename("icepy", icever)
if verbose:
quiet = "v"
else:
quiet = ""
-os.system("tar c" + quiet + "vf " + icever + "-bin-" + platform + ".tar " + icever)
+os.system("tar c" + quiet + "f " + icever + "-bin-" + platform + ".tar " + icever)
os.system("gzip -9 " + icever + "-bin-" + platform + ".tar")
if verbose:
quiet = ""
else:
quiet = "-q"
-os.system("zip -9ry " + quiet + " " + icever + "-bin-" + platform + ".zip " + icever)
+os.system("zip -9 -r -y " + quiet + " " + icever + "-bin-" + platform + ".zip " + icever)
#
# Copy files (README, etc.).
@@ -305,5 +308,7 @@ os.system("zip -9ry " + quiet + " " + icever + "-bin-" + platform + ".zip " + ic
#
# Done.
#
+print "Cleaning up..."
shutil.rmtree(icever)
shutil.rmtree("ice")
+print "Done."