Boost logo

Boost-Commit :

From: jurko.gospodnetic_at_[hidden]
Date: 2008-08-31 17:31:33


Author: jurko
Date: 2008-08-31 17:31:32 EDT (Sun, 31 Aug 2008)
New Revision: 48502
URL: http://svn.boost.org/trac/boost/changeset/48502

Log:
Cleaning up some command line parsing where on some OS's quotes are stripped by the OS and on some they are not. This fixes a failing Boost Build configuration.py unit test on Cygwin.
Text files modified:
   trunk/tools/build/v2/build-system.jam | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/tools/build/v2/build-system.jam
==============================================================================
--- trunk/tools/build/v2/build-system.jam (original)
+++ trunk/tools/build/v2/build-system.jam 2008-08-31 17:31:32 EDT (Sun, 31 Aug 2008)
@@ -22,6 +22,7 @@
 import sequence ;
 import targets ;
 import toolset ;
+import utility ;
 import version ;
 import virtual-target ;
 
@@ -350,6 +351,9 @@
         local user-config = [ MATCH ^--user-config=(.*)$ : $(.argv) ] ;
         user-config = $(user-config[-1]) ;
         user-config ?= [ os.environ BOOST_BUILD_USER_CONFIG ] ;
+ # Special handling for the case when the OS does not strip the quotes
+ # around the file name, as is the case when using Cygwin bash.
+ user-config = [ utility.unquote $(user-config) ] ;
         local explicitly-requested = $(user-config) ;
         user-config ?= user-config.jam ;
 


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