summaryrefslogtreecommitdiff
path: root/boost/tools/build/bootstrap.bat
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
commite0737c56c1e384e05064a0c6e1ac46979371041b (patch)
treea0123d694a2d36c43dabdf0a3907392fce11d457 /boost/tools/build/bootstrap.bat
parentb4aebf2d137b892f53503b13785ecae900062ff7 (diff)
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'boost/tools/build/bootstrap.bat')
-rw-r--r--boost/tools/build/bootstrap.bat50
1 files changed, 50 insertions, 0 deletions
diff --git a/boost/tools/build/bootstrap.bat b/boost/tools/build/bootstrap.bat
new file mode 100644
index 00000000..bf8c3f1d
--- /dev/null
+++ b/boost/tools/build/bootstrap.bat
@@ -0,0 +1,50 @@
+@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 ".\src\engine\bin.ntx86\bjam.exe" del src\engine\bin.ntx86\bjam.exe
+if exist ".\src\engine\bin.ntx86_64\bjam.exe" del src\engine\bin.ntx86_64\bjam.exe
+
+pushd src\engine
+call .\build.bat %* > ..\..\bootstrap.log
+@ECHO OFF
+popd
+
+if exist ".\src\engine\bin.ntx86\b2.exe" (
+ copy .\src\engine\bin.ntx86\b2.exe . > nul
+ copy .\src\engine\bin.ntx86\bjam.exe . > nul
+ goto :bjam_built)
+
+if exist ".\src\engine\bin.ntx86_64\b2.exe" (
+ copy .\src\engine\bin.ntx86_64\b2.exe . > nul
+ copy .\src\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
+exit /b %ERRORLEVEL%