mirror of
https://github.com/boostorg/build.git
synced 2026-02-11 23:52:20 +00:00
boostbook.jam; Remove some path.make calls as they are superfluous in the path.glob case.
path.jam; Kludge path.join into working as it did before when confronted with an initial empty string on the path. [SVN r31212]
This commit is contained in:
@@ -99,14 +99,8 @@ rule init ( docbook-xsl-dir ? : docbook-dtd-dir ? : boostbook-dir ? )
|
||||
for local dir in $(search-dirs) {
|
||||
boostbook-dtd-dir += [ path.glob $(dir) : dtd ] ;
|
||||
}
|
||||
if $(boostbook-xsl-dir)
|
||||
{
|
||||
.boostbook-xsl-dir = [ path.make $(boostbook-xsl-dir[1]) ] ;
|
||||
}
|
||||
if $(boostbook-dtd-dir)
|
||||
{
|
||||
.boostbook-dtd-dir = [ path.make $(boostbook-dtd-dir[1]) ] ;
|
||||
}
|
||||
.boostbook-xsl-dir = $(boostbook-xsl-dir[1]) ;
|
||||
.boostbook-dtd-dir = $(boostbook-dtd-dir[1]) ;
|
||||
|
||||
|
||||
if ! $(.boostbook-xsl-dir) || ! $(.boostbook-dtd-dir)
|
||||
|
||||
@@ -140,7 +140,16 @@ rule reverse ( path )
|
||||
#
|
||||
local rule join-imp ( elements + )
|
||||
{
|
||||
return [ NORMALIZE_PATH $(elements) ] ;
|
||||
local result = ;
|
||||
if ! $(elements[1])
|
||||
{
|
||||
result = [ NORMALIZE_PATH "/" "$(elements[2-])" ] ;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = [ NORMALIZE_PATH "$(elements)" ] ;
|
||||
}
|
||||
return $(result) ;
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user