diff options
author | Matthew Newhook <matthew@zeroc.com> | 2007-06-08 13:49:15 +0800 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2007-06-08 13:49:15 +0800 |
commit | b58cc629c20edf6927a73198af4c484f61db2535 (patch) | |
tree | 5c312fc2b8560a94ba703d93134ba8b9ae75fad6 /java/makedist.py | |
parent | Fix Windows compile errors (diff) | |
download | ice-b58cc629c20edf6927a73198af4c484f61db2535.tar.bz2 ice-b58cc629c20edf6927a73198af4c484f61db2535.tar.xz ice-b58cc629c20edf6927a73198af4c484f61db2535.zip |
makedist.py now uses git.
Diffstat (limited to 'java/makedist.py')
-rwxr-xr-x | java/makedist.py | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/java/makedist.py b/java/makedist.py index e3c90bd8236..7587750bed4 100755 --- a/java/makedist.py +++ b/java/makedist.py @@ -87,7 +87,7 @@ if sys.platform.startswith("win") or sys.platform.startswith("cygwin"): # # Check arguments # -tag = "-rHEAD" +tag = "HEAD" skipTranslators = False verbose = False keepGoing = False @@ -108,7 +108,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. @@ -118,20 +118,25 @@ distdir = "dist" if os.path.exists(distdir): shutil.rmtree(distdir) os.mkdir(distdir) -os.chdir(distdir) +os.mkdir(os.path.join(distdir, "icej")) +os.mkdir(os.path.join(distdir, "ice")) # -# Export Java and C++ sources from CVS. +# Export Java and C++ sources from git. # # NOTE: Assumes that the C++ and Java trees will use the same tag. # -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 + - " icej ice/bin ice/config ice/include ice/lib ice/slice ice/src") + quiet = "" +os.system("git archive " + quiet + " " + tag + " . | (cd dist/icej && tar xf -)") +os.chdir(os.path.join("..", "cpp")) +os.system("git archive " + quiet + " " + tag + " . | (cd ../java/dist/ice && tar xf -)") +os.chdir(os.path.join("..", "java")) + +os.chdir(distdir) # # Check known preconditions for proper distribution building. Failed |