[xml/sgml-commit] [linuxdoc-tools] 01/02: Build doc/guide.pdf instead of no longer built doc/guide.{dvi, ps}.
Agustín Martín Domingo
agmartin at moszumanska.debian.org
Tue Jun 30 11:40:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
agmartin pushed a commit to branch master
in repository linuxdoc-tools.
commit babd229b9bfc0c42f71e21fc54af03eee2e01efe
Author: Agustin Martin Domingo <agmartin at debian.org>
Date: Tue Jun 30 13:00:46 2015 +0200
Build doc/guide.pdf instead of no longer built doc/guide.{dvi,ps}.
* debian/patches/9000_doc_build-pdf-noddvi+ps.patch: New patch
to modify doc/Makedoc.sh for this.
* debian/linuxdoc-tools.doc-base: Change declarations.
* debian/rules: Do not compress .pdf.
Signed-off-by: Agustin Martin Domingo <agmartin at debian.org>
---
debian/changelog | 6 +++++
debian/linuxdoc-tools.doc-base | 6 ++---
debian/patches/9000_doc_build-pdf-noddvi+ps.patch | 31 +++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 5 ++--
5 files changed, 43 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 50c3ed4..de3b6ec 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+linuxdoc-tools (0.9.69-4) unstable; urgency=medium
+
+ * Build doc/guide.pdf instead of no longer built doc/guide.{dvi,ps}.
+
+ -- Agustin Martin Domingo <agmartin at debian.org> Tue, 30 Jun 2015 12:16:40 +0200
+
linuxdoc-tools (0.9.69-3) unstable; urgency=low
* Build depend on texlive-binaries instead of on no longer available
diff --git a/debian/linuxdoc-tools.doc-base b/debian/linuxdoc-tools.doc-base
index 4b8dfa8..6589c62 100644
--- a/debian/linuxdoc-tools.doc-base
+++ b/debian/linuxdoc-tools.doc-base
@@ -1,15 +1,15 @@
Document: linuxdoc-tools
Title: Linuxdoc-Tools User's Guide
Author: Matt Welsh, Greg Hankins, Eric S. Raymond. Updated by Taketoshi Sano.
-Abstract: This document is a user's guide to the Linuxdoc-Tools formatting
+Abstract: This document is a user's guide to the Linuxdoc-Tools formatting
system, a SGML-based system which allows you to produce a variety of output
formats. You can create plain text output (ASCII and ISO-8859-1), DVI,
PostScript, HTML, GNU info, LyX, and RTF output from a single document
source file. This guide describes Linuxdoc-Tools version 0.1.
Section: Text
-Format: postscript
-Files: /usr/share/doc/linuxdoc-tools/guide.ps.gz
+Format: PDF
+Files: /usr/share/doc/linuxdoc-tools/guide.pdf
Format: text
Files: /usr/share/doc/linuxdoc-tools/guide.txt.gz
diff --git a/debian/patches/9000_doc_build-pdf-noddvi+ps.patch b/debian/patches/9000_doc_build-pdf-noddvi+ps.patch
new file mode 100644
index 0000000..75e8b09
--- /dev/null
+++ b/debian/patches/9000_doc_build-pdf-noddvi+ps.patch
@@ -0,0 +1,31 @@
+Description: Build only doc/guide.pdf instead pd doc/guide.{dvi,ps}
+Author: Agustin Martin Domingo <agmartin at bebian.org>
+Forwarded: Yes to me, pending
+Last-Update: 2015-06-30
+
+
+--- a/doc/Makedoc.sh
++++ b/doc/Makedoc.sh
+@@ -46,20 +46,8 @@
+ $TMPDIR/sgml2txt -b 1 ./guide
+ fi
+
+-if [ -n "`which latex`" ]; then
+- ln -s $TMPDIR/linuxdoc $TMPDIR/sgml2latex
+- echo "- Building latex docs" >&2
+- $TMPDIR/sgml2latex --pass="\usepackage{times}" -o dvi ./guide
+-fi
+-
+-if [ -n "`which dvips`" ]; then
+- echo " + dvips" >&2
+- dvips -t letter -o ./guide.ps ./guide.dvi
+- if [ -n "`which gzip`" -a -f ./guide.ps ]; then
+- gzip -fN ./guide.ps
+- fi
+-fi
+-
++echo "- Building pdf docs" >&2
++$TMPDIR/linuxdoc --backend=latex --output=pdf --pass="\usepackage{times}" ./guide.sgml
+
+ echo "- Building info docs" >&2
+ $TMPDIR/linuxdoc -B info ./guide.sgml
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ef4a819
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+9000_doc_build-pdf-noddvi+ps.patch
diff --git a/debian/rules b/debian/rules
index 1842564..397a45d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -110,7 +110,7 @@ binary-indep:
dh_installman -i
dh_link -i
dh_strip -i
- dh_compress -i
+ dh_compress -i -X.pdf
dh_fixperms -i
dh_installdeb -i
dh_shlibdeps -i
@@ -133,7 +133,7 @@ binary-arch: build install
dh_installcatalogs -a
dh_perl -a
dh_strip -a
- dh_compress -a
+ dh_compress -a -X.pdf
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
@@ -147,4 +147,3 @@ binary-arch: build install
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-xml-sgml/linuxdoc-tools.git
More information about the debian-xml-sgml-commit
mailing list