Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2007-06-20 14:03:31


Author: troy
Date: 2007-06-20 14:03:30 EDT (Wed, 20 Jun 2007)
New Revision: 7113
URL: http://svn.boost.org/trac/boost/changeset/7113

Log:

split checkout and initialize_builds

Text files modified:
   sandbox-branches/boost-cmake/dart-client/client.py | 17 ++++++++---------
   1 files changed, 8 insertions(+), 9 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-20 14:03:30 EDT (Wed, 20 Jun 2007)
@@ -131,16 +131,17 @@
         exit(1)
 
 #
-# create local cache directories
+# run cmake (but not make) for each build directory
 #
-def create_caches(argv):
+def initialize_builds(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
+ if not os.path.isdir(buildpath):
+ os.makedirs(buildpath)
+ print ">>> Initializing " + buildpath
         except Exception, e:
             print "Directory %s exists, not creating (%s)" % (buildpath, e)
         os.chdir(buildpath)
@@ -149,9 +150,8 @@
         os.system(cmd)
     
 #
-# run when './client.py checkout' is specified. Create the necessary
-# directories for the various build/test variants and checkout the
-# source.
+# Create the necessary directories for the various build/test variants
+# and checkout the source, but don't run cmake.
 #
 def checkout(argv):
     builds = initbuilds()
@@ -164,7 +164,6 @@
             
         print "Checking out " + id
         svn_checkout(url, srcdir)
- create_caches(argv)
 
 #
 # Do the builds in an infinite loop.
@@ -213,7 +212,7 @@
 #
 action_mapping = {
     'checkout' : checkout,
- 'create_caches' : create_caches,
+ 'initialize_builds' : initialize_builds,
     'run' : run,
     'help' : help,
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk