2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-19 04:02:14 +00:00

Fix invoking asciidoctor on Windows.

This commit is contained in:
Rene Rivera
2025-07-11 22:50:20 -05:00
parent 5320c76f5c
commit c803de9a3d

View File

@@ -147,7 +147,16 @@ rule init ( command * )
{
local t = [ common.find-tool $(c) ] ;
t ?= $(c) ;
ASCIIDOCTOR += $(t) ;
if [ MATCH "(\ )" : $(t) ]
{
# Ruby handles quotes weirdly. So we only add them if absolutely
# needed.
ASCIIDOCTOR += \"$(t)\" ;
}
else
{
ASCIIDOCTOR += $(t) ;
}
}
}
@@ -217,5 +226,5 @@ feature.compose <asciidoctor-backend>pdf : <flags>"-r asciidoctor-pdf" ;
actions convert
{
"$(ASCIIDOCTOR)" -o$(_)"$(<:D=)" -D$(_)"$(<:D)" -b$(_)"$(BACKEND)" -a$(_)"$(ATTRIBUTE)" -d$(_)"$(DOCTYPE)" $(FLAGS) "$(>)"
$(ASCIIDOCTOR) -o$(_)"$(<:D=)" -D$(_)"$(<:D)" -b$(_)"$(BACKEND)" -a$(_)"$(ATTRIBUTE)" -d$(_)"$(DOCTYPE)" $(FLAGS) "$(>)"
}