diff --git a/bootstrap.bat b/bootstrap.bat index e8a1a95..605aa61 100644 --- a/bootstrap.bat +++ b/bootstrap.bat @@ -6,25 +6,25 @@ REM Distributed under the Boost Software License, Version 1.0. REM (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) ECHO Building Boost.Build engine -if exist ".\tools\build\v2\engine\bin.ntx86\b2.exe" del tools\build\v2\engine\bin.ntx86\b2.exe -if exist ".\tools\build\v2\engine\bin.ntx86\bjam.exe" del tools\build\v2\engine\bin.ntx86\bjam.exe -if exist ".\tools\build\v2\engine\bin.ntx86_64\b2.exe" del tools\build\v2\engine\bin.ntx86_64\b2.exe -if exist ".\tools\build\v2\engine\bin.ntx86_64\bjam.exe" del tools\build\v2\engine\bin.ntx86_64\bjam.exe -pushd tools\build\v2\engine +if exist ".\tools\build\engine\bin.ntx86\b2.exe" del tools\build\engine\bin.ntx86\b2.exe +if exist ".\tools\build\engine\bin.ntx86\bjam.exe" del tools\build\engine\bin.ntx86\bjam.exe +if exist ".\tools\build\engine\bin.ntx86_64\b2.exe" del tools\build\engine\bin.ntx86_64\b2.exe +if exist ".\tools\build\engine\bin.ntx86_64\bjam.exe" del tools\build\engine\bin.ntx86_64\bjam.exe +pushd tools\build\engine call .\build.bat %* > ..\..\..\..\bootstrap.log @ECHO OFF popd -if exist ".\tools\build\v2\engine\bin.ntx86\bjam.exe" ( - copy .\tools\build\v2\engine\bin.ntx86\b2.exe . > nul - copy .\tools\build\v2\engine\bin.ntx86\bjam.exe . > nul +if exist ".\tools\build\engine\bin.ntx86\bjam.exe" ( + copy .\tools\build\engine\bin.ntx86\b2.exe . > nul + copy .\tools\build\engine\bin.ntx86\bjam.exe . > nul goto :bjam_built) -if exist ".\tools\build\v2\engine\bin.ntx86_64\bjam.exe" ( - copy .\tools\build\v2\engine\bin.ntx86_64\b2.exe . > nul - copy .\tools\build\v2\engine\bin.ntx86_64\bjam.exe . > nul +if exist ".\tools\build\engine\bin.ntx86_64\bjam.exe" ( + copy .\tools\build\engine\bin.ntx86_64\b2.exe . > nul + copy .\tools\build\engine\bin.ntx86_64\bjam.exe . > nul goto :bjam_built) goto :bjam_failure diff --git a/bootstrap.sh b/bootstrap.sh index 36e92ff..211aadf 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -185,7 +185,7 @@ my_dir="." # Determine the toolset, if not already decided if test "x$TOOLSET" = x; then - guessed_toolset=`$my_dir/tools/build/v2/engine/build.sh --guess-toolset` + guessed_toolset=`$my_dir/tools/build/engine/build.sh --guess-toolset` case $guessed_toolset in acc | darwin | gcc | como | mipspro | pathscale | pgi | qcc | vacpp ) TOOLSET=$guessed_toolset @@ -215,7 +215,7 @@ rm -f config.log if test "x$BJAM" = x; then echo -n "Building Boost.Build engine with toolset $TOOLSET... " pwd=`pwd` - (cd "$my_dir/tools/build/v2/engine" && ./build.sh "$TOOLSET") > bootstrap.log 2>&1 + (cd "$my_dir/tools/build/engine" && ./build.sh "$TOOLSET") > bootstrap.log 2>&1 if [ $? -ne 0 ]; then echo echo "Failed to build Boost.Build build engine" @@ -223,10 +223,10 @@ if test "x$BJAM" = x; then exit 1 fi cd "$pwd" - arch=`cd $my_dir/tools/build/v2/engine && ./bootstrap/jam0 -d0 -f build.jam --toolset=$TOOLSET --toolset-root= --show-locate-target && cd ..` - BJAM="$my_dir/tools/build/v2/engine/$arch/b2" - echo "tools/build/v2/engine/$arch/b2" + arch=`cd $my_dir/tools/build/engine && ./bootstrap/jam0 -d0 -f build.jam --toolset=$TOOLSET --toolset-root= --show-locate-target && cd ..` + BJAM="$my_dir/tools/build/engine/$arch/b2" + echo "tools/build/engine/$arch/b2" cp "$BJAM" . - cp "$my_dir/tools/build/v2/engine/$arch/bjam" . + cp "$my_dir/tools/build/engine/$arch/bjam" . fi