Ticket #2113: build.bat.patch

File build.bat.patch, 1.6 KB (added by Steven Watanabe, 14 years ago)
  • build.bat

     
    202202REM If no arguments guess the toolset;
    203203REM or if first argument is an option guess the toolset;
    204204REM otherwise the argument is the toolset to use.
    205 if "_%1_" == "__" (
     205if "_%~1_" == "__" (
    206206    call :Guess_Toolset
    207207    if not errorlevel 1 goto Setup_Toolset
    208208) else (
    209     call :Test_Option "%1"
     209    call :Test_Option "%~1"
    210210    if not errorlevel 1 (
    211211        call :Guess_Toolset
    212212        if not errorlevel 1 goto Setup_Toolset
     
    230230REM command. A complete "if ... ( commands ) else ( commands )"
    231231REM is a single command, even though it's in multiple lines here.
    232232:Setup_Args
    233 if "_%1_" == "__" goto Config_Toolset
    234 call :Test_Option "%1"
     233if "_%~1_" == "__" goto Config_Toolset
     234call :Test_Option "%~1"
    235235if errorlevel 1 (
    236236    set BOOST_JAM_ARGS=%BOOST_JAM_ARGS% %1
    237237    shift
     
    384384set BJAM_SOURCES=%BJAM_SOURCES% modules/property-set.c modules/sequence.c modules/order.c
    385385
    386386set BJAM_UPDATE=
    387 if "_%1" == "_--update" (
     387if "_%~1" == "_--update" (
    388388    set BJAM_UPDATE=update
    389389)
    390 if "_%2" == "_--update" (
     390if "_%~2" == "_--update" (
    391391    set BJAM_UPDATE=update
    392392)
    393 if "_%3" == "_--update" (
     393if "_%~3" == "_--update" (
    394394    set BJAM_UPDATE=update
    395395)
    396 if "_%4" == "_--update" (
     396if "_%~4" == "_--update" (
    397397    set BJAM_UPDATE=update
    398398)
    399399if "_%BJAM_UPDATE%_" == "_update_" (
     
    446446:Skip_Clean
    447447@set args=
    448448:Set_Args
    449 @if not "_%1_" == "__" (
     449@if not "_%~1_" == "__" (
    450450    set args=%args% %1
    451451    shift
    452452    goto Set_Args