|
Boost-Commit : |
From: troy_at_[hidden]
Date: 2007-06-15 11:58:50
Author: troy
Date: 2007-06-15 11:58:50 EDT (Fri, 15 Jun 2007)
New Revision: 7063
URL: http://svn.boost.org/trac/boost/changeset/7063
Log:
Cleanup, remove crufty globals, remove unused 'init' command, get
python from environment.
Text files modified:
sandbox-branches/boost-cmake/dart-client/client.py | 15 ++-------------
1 files changed, 2 insertions(+), 13 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-15 11:58:50 EDT (Fri, 15 Jun 2007)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import sys
import pysvn
@@ -18,9 +18,6 @@
def __str__(self):
return "id:" + self.id + " bv:" + self.build_variant + " cv:" + self.ctest_variant + " rev:" + str(self.revision) + " avg_t:" + str(self.avg_time) + " last_t:" + str(self.last_start)
-builds = []
-buildqueue = []
-
def nextbuild(builds):
front = Build('none', 'none', 'none')
front_deltat = datetime.min
@@ -42,7 +39,7 @@
return builds
def print_error(msg, cmd):
- sys.stderr.write(style.BOLDRED('Error: %s' % msg) + '\nRun "%s --help" for help.\n' % cmd)
+ sys.stderr.write('%s: Error: %s\n' % (cmd, msg))
sys.exit(1)
configfile = "conf.py"
@@ -108,13 +105,6 @@
# print "status: " + str(status_list)
time.sleep(0)
-def init(argv):
- print "Writing " + configfile + "\n"
- initfile = open(configfile, 'w')
- initfile.write("prefix = 'prefix'\nurls = { 'boost_1_34_0' : 'http://svn.boost.org/svn/boost/sandbox-branches/boost-cmake/boost_1_34_0/tools/build/CMake' }\n")
- initfile.write("build_variants = { 'debug' : ['BUILD_RELEASE:BOOL=OFF','BUILD_DEBUG:BOOL=ON'],\n 'release': ['BUILD_RLEASE:BOOL=OFF','BUILD_DEBUG:BOOL=ON'] }\n")
- initfile.close()
-
def help(argv):
print __name__
@@ -134,7 +124,6 @@
return lambda x: fn(*args)
action_mapping = {
- 'init' : init,
'checkout' : checkout,
'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