Build system: fix HTML man pages target for XSLT 2.0 stylesheets

This commit is contained in:
Moritz Bunkus 2013-01-06 22:20:17 +01:00
parent 4935be1643
commit 23e633a765
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -35,6 +35,7 @@
/doc/man/*/*.xml
/doc/man/po4a/po/mkvtoolnix.pot
/lib/gtest
/lib/saxon-he
/po/*.mo
/po/mkvtoolnix.pot
/rake.d/dependency.d

View File

@ -417,7 +417,7 @@ namespace :man2html do
dir = language == 'en' ? '' : "/#{language}"
FileList[ "doc/man#{dir}/*.xml" ].each do |name|
task File.basename(name, '.xml') => %w{manpages translations:manpages} do
runq "XSLTPROC #{name}", "xsltproc --nonet -o #{name.ext('html')} /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl #{name}"
runq "JAVA", "java -classpath lib/saxon-he/saxon9he.jar net.sf.saxon.Transform -o:#{name.ext('html')} -xsl:doc/stylesheets/docbook-to-html.xsl #{name}"
end
end
end