]> git.proxmox.com Git - ceph.git/blame - 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
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 the xsltproc toolset. To use, just import this
6# module.
7
8import os ;
9import toolset : using ;
10
11
12local 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
28local xsltproc-exe = [ locate-executable xsltproc ] ;
29if $(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}