Ticket #3550: bootstrap.bat

File bootstrap.bat, 1.8 KB (added by Vladimir Prus, 13 years ago)
Line 
1@ECHO OFF
2
3REM Copyright (C) 2009 Vladimir Prus
4REM
5REM Distributed under the Boost Software License, Version 1.0.
6REM (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
7
8ECHO Building Boost.Jam build engine
9if exist ".\tools\jam\src\bin.ntx86\bjam.exe" del tools\jam\src\bin.ntx86\bjam.exe
10cd tools\jam\src
11
12call .\build.bat > ..\..\..\bjam.log
13@ECHO OFF
14cd ..\..\..
15
16if exist ".\tools\jam\src\bin.ntx86\bjam.exe" (
17 copy .\tools\jam\src\bin.ntx86\bjam.exe . > nul
18 goto :bjam_built)
19
20if exist ".\tools\jam\src\bin.ntx86_64\bjam.exe" (
21 copy .\tools\jam\src\bin.ntx86_64\bjam.exe . > nul
22 goto :bjam_built)
23
24goto :bjam_failure
25
26:bjam_built
27
28REM Ideally, we should obtain the toolset that build.bat has
29REM guessed. However, it uses setlocal at the start and does
30REM export BOOST_JAM_TOOLSET, and I don't know how to do that
31REM properly. Default to msvc for now.
32set toolset=msvc
33
34ECHO using %toolset% ; > project-config.jam
35
36ECHO.
37ECHO Bootstrapping is done. To build, run:
38ECHO.
39ECHO .\bjam
40ECHO.
41ECHO To adjust configuration, edit 'project-config.jam'.
42ECHO Further information:
43ECHO.
44ECHO - Command line help:
45ECHO .\bjam --help
46ECHO.
47ECHO - Getting started guide:
48ECHO http://boost.org/more/getting_started/windows.html
49ECHO.
50ECHO - Boost.Build documentation:
51ECHO http://www.boost.org/boost-build2/doc/html/index.html
52
53goto :end
54
55:bjam_failure
56
57ECHO.
58ECHO Failed to build Boost.Jam build engine.
59ECHO Please consult bjam.log for furter diagnostics.
60ECHO.
61ECHO You can try to obtain a prebuilt binary from
62ECHO.
63ECHO http://sf.net/project/showfiles.php?group_id=7586^&package_id=72941
64ECHO.
65ECHO Also, you can file an issue at http://svn.boost.org
66ECHO Please attach bjam.log in that case.
67
68goto :end
69
70:end