mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
Rakefile: fail properly if DocBook stylesheet isn't found
xsltproc always exits with 0 even if it fails.
This commit is contained in:
parent
264cbfd1ab
commit
fe6756147a
9
Rakefile
9
Rakefile
@ -317,7 +317,14 @@ rule '.1' => '.xml' do |t|
|
||||
result
|
||||
end
|
||||
|
||||
runq "xsltproc", t.source, "#{c(:XSLTPROC)} #{c(:XSLTPROC_FLAGS)} -o #{t.name} #{c(:DOCBOOK_ROOT)}/manpages/docbook.xsl #{t.sources.join(" ")}", :filter_output => filter
|
||||
stylesheet = "#{c(:DOCBOOK_ROOT)}/manpages/docbook.xsl"
|
||||
|
||||
if !FileTest.exists?(stylesheet)
|
||||
puts "Error: the DocBook stylesheet '#{stylesheet}' does not exist."
|
||||
exit 1
|
||||
end
|
||||
|
||||
runq "xsltproc", t.source, "#{c(:XSLTPROC)} #{c(:XSLTPROC_FLAGS)} -o #{t.name} #{stylesheet} #{t.sources.join(" ")}", :filter_output => filter
|
||||
end
|
||||
|
||||
$manpages.each do |manpage|
|
||||
|
Loading…
Reference in New Issue
Block a user