Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49906 - trunk/tools/jam/src
From: grafikrobot_at_[hidden]
Date: 2008-11-23 22:00:45


Author: grafik
Date: 2008-11-23 22:00:45 EST (Sun, 23 Nov 2008)
New Revision: 49906
URL: http://svn.boost.org/trac/boost/changeset/49906

Log:
Oops, fix one thing, break another... Fix the final arg parsing for passing extra option args to the bjam build.
Text files modified:
   trunk/tools/jam/src/build.bat | 18 ++++++++++++++----
   1 files changed, 14 insertions(+), 4 deletions(-)

Modified: trunk/tools/jam/src/build.bat
==============================================================================
--- trunk/tools/jam/src/build.bat (original)
+++ trunk/tools/jam/src/build.bat 2008-11-23 22:00:45 EST (Sun, 23 Nov 2008)
@@ -485,12 +485,22 @@
 .\bootstrap\jam0 -f build.jam --toolset=%BOOST_JAM_TOOLSET% "--toolset-root=%BOOST_JAM_TOOLSET_ROOT% " clean
 :Skip_Clean
 @set args=%*
+@echo OFF
 :Set_Args
-_at_if [-] == [%args:~1,1%] goto Set_Args_End
-_at_if [^"-] == [%args:~1,2%] goto Set_Args_End
-_at_set args=%args:~2%
-_at_goto Set_Args
+setlocal
+call :Test_Empty %args%
+if not errorlevel 1 goto Set_Args_End
+set test=###%args:~0,2%###
+set test=%test:"###=%
+set test=%test:###"=%
+set test=%test:###=%
+set test=%test:~0,1%
+if "-" == "%test%" goto Set_Args_End
+endlocal
+set args=%args:~1%
+goto Set_Args
 :Set_Args_End
+@echo ON
 .\bootstrap\jam0 -f build.jam --toolset=%BOOST_JAM_TOOLSET% "--toolset-root=%BOOST_JAM_TOOLSET_ROOT% " %args%
 :Skip_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