]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/src/tools/quickbook-config.jam
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / src / tools / quickbook-config.jam
CommitLineData
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
7import os ;
8import toolset : using ;
9
10if [ 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}
31else
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}