|
Boost-Commit : |
From: troy_at_[hidden]
Date: 2008-07-02 21:36:06
Author: troy
Date: 2008-07-02 21:36:06 EDT (Wed, 02 Jul 2008)
New Revision: 47023
URL: http://svn.boost.org/trac/boost/changeset/47023
Log:
couple more options
Text files modified:
branches/CMake/release/tools/build/CMake/run_continuous_slave.py.in | 41 ++++++++++++++++++++++++++++++++++-----
1 files changed, 35 insertions(+), 6 deletions(-)
Modified: branches/CMake/release/tools/build/CMake/run_continuous_slave.py.in
==============================================================================
--- branches/CMake/release/tools/build/CMake/run_continuous_slave.py.in (original)
+++ branches/CMake/release/tools/build/CMake/run_continuous_slave.py.in 2008-07-02 21:36:06 EDT (Wed, 02 Jul 2008)
@@ -4,11 +4,45 @@
#
import pysvn, os, time
+from optparse import OptionParser
+
+parser = OptionParser()
+
+parser.add_option("-b", "--build-first",
+ action="store_true", dest="build_first", default=False,
+ help="Build on startup")
+
+parser.add_option("-c", "--clean-first",
+ action="store_true", dest="clean_first", default=False,
+ help="Clean on startup")
+
+parser.add_option("-C", "--clean-every-time",
+ action="store_true", dest="clean_every_time", default=False,
+ help="Clean before every build")
+
+(options, args) = parser.parse_args()
+
client = pysvn.Client()
wc_path = r'@CMAKE_SOURCE_DIR@'
+def do_build(clean_):
+ if clean_:
+ clean = 'clean'
+ else:
+ clean = ''
+ if os.name == 'nt':
+ cmd = 'nmake /I ' + clean + ' slave-start test slave-finish'
+ else:
+ cmd = 'make -i ' + clean + ' slave-start test slave-finish'
+ print "Starting build:\n>>> ", cmd
+ os.system(cmd)
+
+
+if options.build_first:
+ do_build(options.clean_first)
+
while True:
try:
svn_entry = client.info(wc_path)
@@ -29,12 +63,7 @@
print ">>>", j.path
print "Updating."
client.update(wc_path)
- if os.name == 'nt':
- cmd = 'nmake /I clean slave-start test slave-finish'
- else:
- cmd = 'make -i clean slave-start test slave-finish'
- print "Starting build:\n>>> ", cmd
- os.system(cmd)
+ do_build(options.clean_every_time)
else:
print "No updates."
except:
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