[liblas] 21/23: Add manpages for liblas-bin.

Bas Couwenberg sebastic at xs4all.nl
Sat Feb 8 01:30:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository liblas.

commit fb74a3ceab05e5294a110f74b440c46dff04d00c
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Feb 7 18:36:43 2014 +0100

    Add manpages for liblas-bin.
---
 debian/changelog |  2 ++
 debian/control   |  6 +++++-
 debian/rules     | 11 +++++++++++
 3 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 41e1276..a812b7f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,8 @@ liblas (1.7.0+dfsg-3) UNRELEASED; urgency=low
     (closes: #736129)
   * Update liblas-dev dependency on libgdal-dev to match the build dependency.
   * Drop shlibs:Depends for -dev packages.
+  * Add manpages for liblas-bin.
+    (closes: #645820)
 
  -- Bas Couwenberg <sebastic at xs4all.nl>  Fri, 31 Jan 2014 01:37:27 +0100
 
diff --git a/debian/control b/debian/control
index 9fadef4..a514b15 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,11 @@ Build-Depends: debhelper (>= 9),
                libboost-dev,
                libboost-program-options-dev,
                libboost-thread-dev,
-               python-all-dev
+               python-all-dev,
+               docbook2x,
+               docbook-xsl,
+               docbook-xml,
+               xsltproc
 Build-Depends-Indep: dh-python,
                      python-setuptools
 Standards-Version: 3.9.5
diff --git a/debian/rules b/debian/rules
index f5b2fa2..3966626 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+MANPAGES:=$(wildcard debian/man/*.*.xml)
+
 %:
 	dh $@ --buildsystem cmake \
 	      --parallel
@@ -22,6 +24,15 @@ override_dh_auto_configure:
 override_dh_auto_configure-indep:
 	dh_auto_configure --sourcedirectory $(CURDIR)/python --buildsystem pybuild
 
+override_dh_auto_build-arch:
+	# Create man pages from DocBook XML
+	for x in $(MANPAGES) ; do \
+	  docbook2x-man $$x ; \
+	  mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
+	done
+
+	dh_auto_build
+
 override_dh_auto_build-indep:
 	dh_auto_build --sourcedirectory $(CURDIR)/python --buildsystem pybuild
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/liblas.git



More information about the Pkg-grass-devel mailing list