]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #~ Copyright 2005 Rene Rivera. |
2 | #~ Distributed under the Boost Software License, Version 1.0. | |
1e59de90 | 3 | #~ (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt) |
7c673cae FG |
4 | |
5 | # Automatic configuration for BoostBook tools. To use, just import this module. | |
6 | ||
7 | import os ; | |
8 | import toolset : using ; | |
9 | ||
10 | if [ os.name ] = NT | |
11 | { | |
12 | local boost-dir = ; | |
13 | for local R in snapshot cvs 1.33.0 | |
14 | { | |
15 | boost-dir += [ W32_GETREG | |
16 | "HKEY_LOCAL_MACHINE\\SOFTWARE\\Boost.org\\$(R)" | |
17 | : "InstallRoot" ] ; | |
18 | } | |
19 | local quickbook-path = [ GLOB "$(boost-dir)\\bin" "\\Boost\\bin" : quickbook.exe ] ; | |
20 | quickbook-path = $(quickbook-path[1]) ; | |
1e59de90 | 21 | |
7c673cae FG |
22 | if $(quickbook-path) |
23 | { | |
24 | if --debug-configuration in [ modules.peek : ARGV ] | |
25 | { | |
26 | ECHO "notice:" using quickbook ":" $(quickbook-path) ; | |
27 | } | |
28 | using quickbook : $(quickbook-path) ; | |
29 | } | |
30 | } | |
31 | else | |
32 | { | |
33 | local quickbook-path = [ GLOB "/usr/local/bin" "/usr/bin" "/opt/bin" : quickbook ] ; | |
34 | quickbook-path = $(quickbook-path[1]) ; | |
1e59de90 | 35 | |
7c673cae FG |
36 | if $(quickbook-path) |
37 | { | |
38 | if --debug-configuration in [ modules.peek : ARGV ] | |
39 | { | |
40 | ECHO "notice:" using quickbook ":" $(quickbook-path) ; | |
41 | } | |
42 | using quickbook : $(quickbook-path) ; | |
43 | } | |
44 | } |