]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/tools/quickbook-config.jam
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / build / src / tools / quickbook-config.jam
1 #~ Copyright 2005 Rene Rivera.
2 #~ Distributed under the Boost Software License, Version 1.0.
3 #~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
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]) ;
21
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]) ;
35
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 }