Use xsltproc/dblatex instead of fop in Build-Depends, enable verbose execution with...
authorMichael Prokop <mika@grml.org>
Thu, 3 Apr 2014 10:14:57 +0000 (12:14 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 3 Apr 2014 10:39:50 +0000 (12:39 +0200)
The verbose execution provides us with:

| a2x: executing: "xmllint" --nonet --noout --valid "/tmp/buildd/zsh-lovers-0.8.3/zsh-lovers.1.xml"
|
| I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
| /tmp/buildd/zsh-lovers-0.8.3/zsh-lovers.1.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
| D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
|                                                                                ^
| /tmp/buildd/zsh-lovers-0.8.3/zsh-lovers.1.xml:5: validity error : Validation failed: no DTD found !
| <refentry lang="en">
|                    ^
|
| make[1]: *** [all] Error 1

instead of:

| a2x: ERROR: "xmllint" --nonet --noout --valid "/tmp/buildd/zsh-lovers-0.8.3/zsh-lovers.1.xml" returned non-zero exit status 4

And we don't seem to be able to build with xmllint inside the
tool chain even though the output looks OK-ish, so let's
run it with --no-xmllint

Makefile
debian/control

index a328348..5471560 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,10 @@ all:
        mv zsh-lovers.1.html zsh-lovers.html
 
        # manpage:
-       a2x -f manpage zsh-lovers.1.txt
+       a2x -vv --no-xmllint -f manpage zsh-lovers.1.txt
 
        # pdf:
-       a2x -f pdf zsh-lovers.1.txt
+       a2x -vv --no-xmllint -f pdf zsh-lovers.1.txt
        mv zsh-lovers.1.pdf zsh-lovers.pdf
 
 clean:
index b12a0ad..e3b2292 100644 (file)
@@ -3,7 +3,7 @@ Section: doc
 Priority: optional
 Maintainer: Michael Prokop <mika@grml.org>
 Build-Depends: debhelper (>= 8.0.0)
-Build-Depends-Indep: asciidoc, fop
+Build-Depends-Indep: asciidoc, xsltproc, dblatex
 Standards-Version: 3.9.5
 Homepage: http://grml.org/zsh/
 Vcs-git: git://git.grml.org/zsh-lovers.git