diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 12:57:26 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 12:57:26 -0700 |
commit | 1a78a62555be32868418fe52f8e330c9d0f95d5a (patch) | |
tree | d3765a80e7d3b9640ec2e930743630cd6b9fce2b /tools/build/v2/bootstrap.bat | |
download | boost-1a78a62555be32868418fe52f8e330c9d0f95d5a.tar.gz boost-1a78a62555be32868418fe52f8e330c9d0f95d5a.tar.bz2 boost-1a78a62555be32868418fe52f8e330c9d0f95d5a.zip |
Imported Upstream version 1.49.0upstream/1.49.0
Diffstat (limited to 'tools/build/v2/bootstrap.bat')
-rw-r--r-- | tools/build/v2/bootstrap.bat | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tools/build/v2/bootstrap.bat b/tools/build/v2/bootstrap.bat new file mode 100644 index 0000000000..190c9283de --- /dev/null +++ b/tools/build/v2/bootstrap.bat @@ -0,0 +1,49 @@ +@ECHO OFF + +REM Copyright (C) 2009 Vladimir Prus +REM +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 Bootstrapping the build engine +if exist ".\engine\bin.ntx86\bjam.exe" del engine\bin.ntx86\bjam.exe +if exist ".\engine\bin.ntx86_64\bjam.exe" del engine\bin.ntx86_64\bjam.exe +cd engine + +call .\build.bat %* > ..\..\bootstrap.log +@ECHO OFF +cd .. + +if exist ".\engine\bin.ntx86\b2.exe" ( + copy .\engine\bin.ntx86\b2.exe . > nul + copy .\engine\bin.ntx86\bjam.exe . > nul + goto :bjam_built) + +if exist ".\engine\bin.ntx86_64\b2.exe" ( + copy .\engine\bin.ntx86_64\b2.exe . > nul + copy .\engine\bin.ntx86_64\bjam.exe . > nul + goto :bjam_built) + +goto :bjam_failure + +:bjam_built + +ECHO. +ECHO Bootstrapping is done. To build, run: +ECHO. +ECHO .\b2 --prefix=DIR install +ECHO. + +goto :end + +:bjam_failure + +ECHO. +ECHO Failed to bootstrap the build engine +ECHO Please consult bootstrap.log for furter diagnostics. +ECHO. + + +goto :end + +:end |