Ticket #2113: build.bat.patch
File build.bat.patch, 1.6 KB (added by , 14 years ago) |
---|
-
build.bat
202 202 REM If no arguments guess the toolset; 203 203 REM or if first argument is an option guess the toolset; 204 204 REM otherwise the argument is the toolset to use. 205 if "_% 1_" == "__" (205 if "_%~1_" == "__" ( 206 206 call :Guess_Toolset 207 207 if not errorlevel 1 goto Setup_Toolset 208 208 ) else ( 209 call :Test_Option "% 1"209 call :Test_Option "%~1" 210 210 if not errorlevel 1 ( 211 211 call :Guess_Toolset 212 212 if not errorlevel 1 goto Setup_Toolset … … 230 230 REM command. A complete "if ... ( commands ) else ( commands )" 231 231 REM is a single command, even though it's in multiple lines here. 232 232 :Setup_Args 233 if "_% 1_" == "__" goto Config_Toolset234 call :Test_Option "% 1"233 if "_%~1_" == "__" goto Config_Toolset 234 call :Test_Option "%~1" 235 235 if errorlevel 1 ( 236 236 set BOOST_JAM_ARGS=%BOOST_JAM_ARGS% %1 237 237 shift … … 384 384 set BJAM_SOURCES=%BJAM_SOURCES% modules/property-set.c modules/sequence.c modules/order.c 385 385 386 386 set BJAM_UPDATE= 387 if "_% 1" == "_--update" (387 if "_%~1" == "_--update" ( 388 388 set BJAM_UPDATE=update 389 389 ) 390 if "_% 2" == "_--update" (390 if "_%~2" == "_--update" ( 391 391 set BJAM_UPDATE=update 392 392 ) 393 if "_% 3" == "_--update" (393 if "_%~3" == "_--update" ( 394 394 set BJAM_UPDATE=update 395 395 ) 396 if "_% 4" == "_--update" (396 if "_%~4" == "_--update" ( 397 397 set BJAM_UPDATE=update 398 398 ) 399 399 if "_%BJAM_UPDATE%_" == "_update_" ( … … 446 446 :Skip_Clean 447 447 @set args= 448 448 :Set_Args 449 @if not "_% 1_" == "__" (449 @if not "_%~1_" == "__" ( 450 450 set args=%args% %1 451 451 shift 452 452 goto Set_Args