View | Details | Raw Unified | Return to bug 9802
Collapse All | Expand All

(-)a/debian/control (-1 / +2 lines)
Lines 106-112 Build-Depends: libalgorithm-checkdigits-perl, Link Here
106
 libyaml-syck-perl,
106
 libyaml-syck-perl,
107
 perl,
107
 perl,
108
 perl-modules, 
108
 perl-modules, 
109
 debhelper (>= 7.0.50), gettext, python, python-debian, xsltproc, docbook-xsl
109
 debhelper (>= 7.0.50), gettext, python, python-debian, xsltproc, docbook-xsl,
110
 libxml2-utils
110
111
111
Package: koha-common
112
Package: koha-common
112
Architecture: all
113
Architecture: all
(-)a/debian/control.in (-1 / +2 lines)
Lines 7-13 Standards-Version: 3.8.4 Link Here
7
# See debian/rules, the override_dh_gencontrol rules. 
7
# See debian/rules, the override_dh_gencontrol rules. 
8
# There are some exceptions.
8
# There are some exceptions.
9
Build-Depends:__AUTODEPENDS__, 
9
Build-Depends:__AUTODEPENDS__, 
10
 debhelper (>= 7.0.50), gettext, python, python-debian, xsltproc, docbook-xsl
10
 debhelper (>= 7.0.50), gettext, python, python-debian, xsltproc, docbook-xsl,
11
 libxml2-utils
11
12
12
Package: koha-common
13
Package: koha-common
13
Architecture: all
14
Architecture: all
(-)a/debian/rules (+1 lines)
Lines 100-105 override_dh_auto_install: Link Here
100
		   -e 's:url(.*/skin.css.*):url(skin.css):' \
100
		   -e 's:url(.*/skin.css.*):url(skin.css):' \
101
		$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css/staff-global*.css
101
		$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css/staff-global*.css
102
	mkdir -p $(TMP)/debian/tmp_docbook
102
	mkdir -p $(TMP)/debian/tmp_docbook
103
	xt/verify-debian-docbook.t
103
	xsltproc --output $(TMP)/debian/tmp_docbook/ \
104
	xsltproc --output $(TMP)/debian/tmp_docbook/ \
104
	    /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \
105
	    /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \
105
	    debian/docs/*.xml
106
	    debian/docs/*.xml
(-)a/xt/verify-debian-docbook.t (-1 / +34 lines)
Line 0 Link Here
0
- 
1
#!/usr/bin/perl
2
3
# Copyright (C) 2013 Catalyst IT Ltd.
4
#
5
# This file is part of Koha.
6
#
7
# Koha is free software; you can redistribute it and/or modify it under the
8
# terms of the GNU General Public License as published by the Free Software
9
# Foundation; either version 2 of the License, or (at your option) any later
10
# version.
11
#
12
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15
#
16
# You should have received a copy of the GNU General Public License along
17
# with Koha; if not, write to the Free Software Foundation, Inc.,
18
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
20
# This runs 'xmllint' (part of libxml2-utils) over each xml file that
21
# generates the koha-common man pages and ensures they're correct.
22
23
use strict;
24
use warnings;
25
26
use Test::More qw(no_plan);
27
28
my $doc_dir = 'debian/docs';
29
my @doc_files = glob($doc_dir . '/*.xml');
30
my @command = qw(xmllint --noout);
31
32
foreach my $file (@doc_files) {
33
    ok(system(@command, $file) == 0, "XML validation for $file");
34
}

Return to bug 9802