[Koha-patches] [PATCH] Bug 4877 [ENH] [SIGNED-OFF] install generated man pages with build process

Magnus Enger magnus at enger.priv.no
Thu Sep 15 11:52:16 CEST 2011


From: Robin Sheat <robin at catalyst.net.nz>

This uses the docbook source files to generate the man pages, and
installs them to their correct location when the packages are being
built.

This will make it easier for people to write man pages, thereby ensuring
that people join in keeping documentation up to date.

Note: adds docbook-xsl and xsltproc to the dependencies.
Note2: applies on top of Magnus' other patch on this ticket.

Signed-off-by: Magnus Enger <magnus at enger.priv.no>
---
 debian/control             |    2 +-
 debian/control.in          |    2 +-
 debian/koha-common.install |    2 +-
 debian/rules               |    5 ++++-
 4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index 8268b6b..0384e18 100644
--- a/debian/control
+++ b/debian/control
@@ -79,7 +79,7 @@ Build-Depends: libcgi-session-driver-memcached-perl,
  libyaml-syck-perl,
  perl,
  perl-modules, 
- debhelper (>= 7.0.50), gettext, python, python-debian
+ debhelper (>= 7.0.50), gettext, python, python-debian, xsltproc, docbook-xsl
 
 Package: koha-common
 Architecture: all
diff --git a/debian/control.in b/debian/control.in
index febc37e..5cafcb4 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -7,7 +7,7 @@ Standards-Version: 3.8.4
 # See debian/rules, the override_dh_gencontrol rules. 
 # There are some exceptions.
 Build-Depends:__AUTODEPENDS__, 
- debhelper (>= 7.0.50), gettext, python, python-debian
+ debhelper (>= 7.0.50), gettext, python, python-debian, xsltproc, docbook-xsl
 
 Package: koha-common
 Architecture: all
diff --git a/debian/koha-common.install b/debian/koha-common.install
index 1f78b0e..50affbd 100644
--- a/debian/koha-common.install
+++ b/debian/koha-common.install
@@ -28,4 +28,4 @@ debian/scripts/koha-start-zebra             usr/sbin
 debian/scripts/koha-stop-zebra              usr/sbin
 debian/scripts/koha-upgrade-schema          usr/sbin
 debian/scripts/koha-upgrade-to-3.4          usr/sbin
-debian/scripts/*.8                          usr/share/man/man8
+debian/tmp_docbook/*.8                      usr/share/man/man8
diff --git a/debian/rules b/debian/rules
index 1b20293..64a1790 100755
--- a/debian/rules
+++ b/debian/rules
@@ -92,4 +92,7 @@ override_dh_auto_install:
 		$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css/opac.css \
 		$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css/sco.css \
 		$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css/staff-global*.css
-
+	mkdir -p $(TMP)/debian/tmp_docbook
+	xsltproc --output $(TMP)/debian/tmp_docbook/ \
+	    /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \
+	    debian/docs/*.xml
-- 
1.7.4.1



More information about the Koha-patches mailing list