bootstrap.bat 651 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @ECHO OFF
  2. REM Copyright (C) 2009 Vladimir Prus
  3. REM Copyright 2019-2020 Rene Rivera
  4. REM
  5. REM Distributed under the Boost Software License, Version 1.0.
  6. REM (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
  7. :b2_build
  8. ECHO Building the B2 engine..
  9. pushd src\engine
  10. call .\build.bat %*
  11. @ECHO OFF
  12. popd
  13. if exist ".\src\engine\b2.exe" (
  14. copy .\src\engine\b2.exe . > nul
  15. goto :b2_built)
  16. goto :b2_failure
  17. :b2_built
  18. ECHO.
  19. ECHO Building is done. To install, run:
  20. ECHO.
  21. ECHO .\b2 --prefix=DIR install
  22. ECHO.
  23. goto :end
  24. :b2_failure
  25. ECHO.
  26. ECHO Failed to build the B2 engine.
  27. ECHO.
  28. goto :end
  29. :end
  30. exit /b %ERRORLEVEL%