]>
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 the xsltproc toolset. To use, just import this | |
6 | # module. | |
7 | ||
8 | import os ; | |
9 | import toolset : using ; | |
10 | ||
11 | ||
12 | local rule locate-executable ( name ) | |
13 | { | |
14 | local path = [ modules.peek : PATH ] ; | |
15 | local exe ; | |
16 | if [ os.name ] = NT | |
17 | { | |
18 | exe = [ GLOB $(path) "C:\\Boost\\bin" : $(name)\.exe ] ; | |
19 | } | |
20 | else | |
21 | { | |
22 | exe = [ GLOB $(path) : $(name) ] ; | |
23 | } | |
24 | return $(exe[1]) ; | |
25 | } | |
26 | ||
27 | ||
28 | local xsltproc-exe = [ locate-executable xsltproc ] ; | |
29 | if $(xsltproc-exe) | |
30 | { | |
31 | if --debug-configuration in [ modules.peek : ARGV ] | |
32 | { | |
11fdf7f2 | 33 | ECHO notice\: using xsltproc ":" $(xsltproc-exe) ; |
7c673cae FG |
34 | } |
35 | using xsltproc : $(xsltproc-exe) ; | |
36 | } |