]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/tools/xsltproc-config.jam
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / src / tools / xsltproc-config.jam
1 #~ Copyright 2005 Rene Rivera.
2 #~ Distributed under the Boost Software License, Version 1.0.
3 #~ (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
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 {
33 ECHO notice\: using xsltproc ":" $(xsltproc-exe) ;
34 }
35 using xsltproc : $(xsltproc-exe) ;
36 }