Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52329 - trunk
From: ghost_at_[hidden]
Date: 2009-04-11 09:31:12


Author: vladimir_prus
Date: 2009-04-11 09:31:11 EDT (Sat, 11 Apr 2009)
New Revision: 52329
URL: http://svn.boost.org/trac/boost/changeset/52329

Log:
Add bootstrap.bat.

Added:
   trunk/bootstrap.bat (contents, props changed)

Added: trunk/bootstrap.bat
==============================================================================
--- (empty file)
+++ trunk/bootstrap.bat 2009-04-11 09:31:11 EDT (Sat, 11 Apr 2009)
@@ -0,0 +1,62 @@
+# Copyright (C) 2009 Vladimir Prus
+#
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
+@ECHO OFF
+
+ECHO Building Boost.Jam build engine
+if exist ".\tools\jam\src\bin.ntx86\bjam.exe" del tools\jam\src\bin.ntx86\bjam.exe
+cd tools\jam\src
+
+call .\build.bat > ..\..\..\bjam.log
+@ECHO OFF
+cd ..\..\..
+
+if not exist ".\tools\jam\src\bin.ntx86\bjam.exe" goto :bjam_failure
+
+copy .\tools\jam\src\bin.ntx86\bjam.exe . > nul
+
+REM Ideally, we should obtain the toolset that build.bat has
+REM guessed. However, it uses setlocal at the start and does
+REM export BOOST_JAM_TOOLSET, and I don't know how to do that
+REM properly. Default to msvc for now.
+set toolset=msvc
+
+ECHO using %toolset% ; > project-config.jam
+
+ECHO.
+ECHO Bootstrapping is done. To build, run:
+ECHO.
+ECHO .\bjam.exe
+ECHO.
+ECHO To adjust configuration, edit 'project-config.jam'.
+ECHO Further information:
+ECHO.
+ECHO - Command line help:
+ECHO ./bjam --help
+ECHO.
+ECHO - Getting started guide:
+ECHO http://boost.org/more/getting_started/windows.html
+ECHO.
+ECHO - Boost.Build documentation:
+ECHO http://www.boost.org/boost-build2/doc/html/index.html
+
+goto :end
+
+:bjam_failure
+
+ECHO.
+ECHO Failed to build Boost.Jam build engine.
+ECHO Please consult bjam.log for furter diagnostics.
+ECHO.
+ECHO You can try to obtain a prebuilt binary from
+ECHO.
+ECHO http://sf.net/project/showfiles.php?group_id=7586^&package_id=72941
+ECHO.
+ECHO Also, you can file an issue at http://svn.boost.org
+ECHO Please attach bjam.log in that case.
+
+goto :end
+
+:end


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk