|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61736 - sandbox/SOC/2010/bit_masks
From: bbartmanboost_at_[hidden]
Date: 2010-05-02 13:34:54
Author: bbartman
Date: 2010-05-02 13:34:54 EDT (Sun, 02 May 2010)
New Revision: 61736
URL: http://svn.boost.org/trac/boost/changeset/61736
Log:
adding project root file to subversion
Added:
sandbox/SOC/2010/bit_masks/project-root.jam (contents, props changed)
Added: sandbox/SOC/2010/bit_masks/project-root.jam
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/bit_masks/project-root.jam 2010-05-02 13:34:54 EDT (Sun, 02 May 2010)
@@ -0,0 +1,42 @@
+#
+# Copyright (c) 2006 Brian Bartman
+#
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+#
+
+##
+## IMPORTANT NOTE: This file MUST NOT be copied over a boost installation
+##
+
+path-constant top : . ;
+
+import modules ;
+import path ;
+
+local boost-root = [ modules.peek : BOOST_ROOT ] ;
+
+if ! $(boost-root)
+{
+ local boost-search-dirs = [ modules.peek : BOOST_BUILD_PATH ] ;
+
+ for local dir in $(boost-search-dirs)
+ {
+ if [ path.glob $(dir)/../../../ : boost/version.hpp ]
+ {
+ boost-root += $(dir)/../../../ ;
+ }
+ }
+
+ if $(boost-root)
+ {
+ boost-root = [ path.make $(boost-root[1]) ] ;
+ }
+ else
+ {
+ ECHO "Warning: couldn't find BOOST_ROOT in" $(boost-root) ;
+ }
+}
+
+path-constant BOOST_ROOT : $(boost-root) ;
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