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

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@enger.priv.no>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Robin Sheat 2011-09-14 19:03:58 +12:00 committed by Chris Cormack
parent 95afdc957a
commit 9d3a8d9865
4 changed files with 7 additions and 4 deletions

2
debian/control vendored
View File

@ -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

2
debian/control.in vendored
View File

@ -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

View File

@ -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

5
debian/rules vendored
View File

@ -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