$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: troy_at_[hidden]
Date: 2007-06-16 21:37:09
Author: troy
Date: 2007-06-16 21:37:08 EDT (Sat, 16 Jun 2007)
New Revision: 7083
URL: http://svn.boost.org/trac/boost/changeset/7083
Log:
Separate command to initialize local caches
Text files modified: 
   sandbox-branches/boost-cmake/dart-client/client.py |    34 ++++++++++++++++++++--------------      
   1 files changed, 20 insertions(+), 14 deletions(-)
Modified: sandbox-branches/boost-cmake/dart-client/client.py
==============================================================================
--- sandbox-branches/boost-cmake/dart-client/client.py	(original)
+++ sandbox-branches/boost-cmake/dart-client/client.py	2007-06-16 21:37:08 EDT (Sat, 16 Jun 2007)
@@ -131,6 +131,24 @@
         exit(1)
 
 #
+# create local cache directories
+#
+def create_caches(argv):
+    print "Making build directories..."
+    for build in initbuilds():
+        buildpath = os.path.join(topdir,prefix, build.id, build.build_variant, build.ctest_variant)
+        srcpath = os.path.join(topdir, prefix, build.id, "src")
+        try:
+            os.makedirs(buildpath)
+            print ">>> Initializing " + buildpath
+        except Exception, e:
+            print "Directory %s exists, not creating (%s)" % (buildpath, e)
+        os.chdir(buildpath)
+        cmd = cmake + " " + " ".join(build_variants[build.build_variant]) + " " + srcpath
+        print ">>> Executing " + cmd
+        os.system(cmd)
+    
+#
 # run when './client.py checkout' is specified.  Create the necessary
 # directories for the various build/test variants and checkout the
 # source.
@@ -146,21 +164,8 @@
             
         print "Checking out " + id
         svn_checkout(url, srcdir)
+    create_caches(argv)
 
-    print "Making build directories..."
-    for build in builds:
-        buildpath = os.path.join(topdir,prefix, build.id, build.build_variant, build.ctest_variant)
-        srcpath = os.path.join(topdir, prefix, build.id, "src")
-        try:
-            os.makedirs(buildpath)
-            print ">>> Initializing " + buildpath
-        except Exception, e:
-            print "Directory %s exists, not creating (%s)" % (buildpath, e)
-        os.chdir(buildpath)
-        cmd = cmake + " " + " ".join(build_variants[build.build_variant]) + " " + srcdir
-        print ">>> Executing " + cmd
-        os.system(cmd)
-    
 #
 #  Do the builds in an infinite loop.
 #
@@ -208,6 +213,7 @@
 #
 action_mapping = {
     'checkout' : checkout,
+    'create_caches' : create_caches,
     'run' : run,
     'help' : help,
     }