|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78613 - trunk/tools/release
From: bdawes_at_[hidden]
Date: 2012-05-25 09:54:14
Author: bemandawes
Date: 2012-05-25 09:54:14 EDT (Fri, 25 May 2012)
New Revision: 78613
URL: http://svn.boost.org/trac/boost/changeset/78613
Log:
Initial commit
Added:
trunk/tools/release/inspect.py (contents, props changed)
Added: trunk/tools/release/inspect.py
==============================================================================
--- (empty file)
+++ trunk/tools/release/inspect.py 2012-05-25 09:54:14 EDT (Fri, 25 May 2012)
@@ -0,0 +1,37 @@
+# Inspect Trunk
+# Copyright Beman Dawes 2008, 2009, 2012
+
+# Distributed under the Boost Software License, Version 1.0.
+# See http://www.boost.org/LICENSE_1_0.txt
+
+import os
+import os.path
+import subprocess
+
+def cmnd(x): # execute a command
+ rc = subprocess.call(x)
+ if rc != 0:
+ print 'aborting command:'
+ print x
+ exit(rc)
+
+if not os.path.exists('.svn'):
+ print 'Error: must be run in the boost root directory'
+ exit(1)
+print 'Boost root directory detected'
+
+# cleanup clears locks or other residual problems (learned this the hard way!)
+print 'Clean working copy ...'
+cmnd(['svn', 'cleanup'])
+
+print 'Update working copy...'
+cmnd(['svn', 'up', '--non-interactive', '--trust-server-cert'])
+
+print 'Build inspect program...'
+old_dir = os.getcwd()
+os.chdir(['tools/inspect/build'])
+cmnd(['bjam'])
+os.chdir(old_dir)
+
+print 'Running inspect from ' + os.getcwd()
+cmnd(['dist/bin/inspect'])
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