summaryrefslogtreecommitdiff
path: root/cpp/makedist.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2007-06-08 13:49:15 +0800
committerMatthew Newhook <matthew@zeroc.com>2007-06-08 13:49:15 +0800
commitb58cc629c20edf6927a73198af4c484f61db2535 (patch)
tree5c312fc2b8560a94ba703d93134ba8b9ae75fad6 /cpp/makedist.py
parentFix Windows compile errors (diff)
downloadice-b58cc629c20edf6927a73198af4c484f61db2535.tar.bz2
ice-b58cc629c20edf6927a73198af4c484f61db2535.tar.xz
ice-b58cc629c20edf6927a73198af4c484f61db2535.zip
makedist.py now uses git.
Diffstat (limited to 'cpp/makedist.py')
-rwxr-xr-xcpp/makedist.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/cpp/makedist.py b/cpp/makedist.py
index 62c159efffd..bc6151cb055 100755
--- a/cpp/makedist.py
+++ b/cpp/makedist.py
@@ -195,7 +195,7 @@ def fixVersion(files, version, mmversion):
#
# Check arguments
#
-tag = "-rHEAD"
+tag = "HEAD"
verbose = 0
for x in sys.argv[1:]:
if x == "-h":
@@ -209,7 +209,7 @@ for x in sys.argv[1:]:
usage()
sys.exit(1)
else:
- tag = "-r" + x
+ tag = x
#
# Remove any existing "dist" directory and create a new one.
@@ -218,17 +218,19 @@ distdir = "dist"
if os.path.exists(distdir):
shutil.rmtree(distdir)
os.mkdir(distdir)
-os.chdir(distdir)
+os.mkdir(os.path.join(distdir, "ice"))
#
-# Export sources from CVS.
+# Export sources from git.
#
-print "Checking out CVS tag " + tag + "..."
+print "Checking out " + tag + "..."
if verbose:
- quiet = ""
+ quiet = "-v"
else:
- quiet = "-Q"
-os.system("cvs " + quiet + " -d cvs.zeroc.com:/home/cvsroot export " + tag + " ice")
+ quiet = ""
+os.system("git archive " + quiet + " " + tag + " . | (cd dist/ice && tar xf -)")
+
+os.chdir(distdir)
#
# Get Ice version.