mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
Use absolute paths so that ./doc.pl runs.
The relative paths used would not correctly find required libraries and DTD files.
This commit is contained in:
parent
ee04ebe314
commit
fdc76742c8
@ -19,10 +19,10 @@ use Getopt::Long qw(GetOptions);
|
||||
use Pod::Usage qw(pod2usage);
|
||||
use Storable;
|
||||
|
||||
use lib dirname($0) . '/lib';
|
||||
use lib dirname(dirname($0)) . '/lib';
|
||||
use lib dirname(dirname($0)) . '/build/lib';
|
||||
use lib dirname(dirname($0)) . '/test/lib';
|
||||
use lib dirname(abs_path($0)) . '/lib';
|
||||
use lib dirname(dirname(abs_path($0))) . '/lib';
|
||||
use lib dirname(dirname(abs_path($0))) . '/build/lib';
|
||||
use lib dirname(dirname(abs_path($0))) . '/test/lib';
|
||||
|
||||
use BackRestDoc::Common::Doc;
|
||||
use BackRestDoc::Common::DocConfig;
|
||||
|
@ -8,6 +8,7 @@ use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
use English '-no_match_vars';
|
||||
|
||||
use Cwd qw(abs_path);
|
||||
use File::Basename qw(dirname);
|
||||
use Scalar::Util qw(blessed);
|
||||
use XML::Checker::Parser;
|
||||
@ -45,7 +46,8 @@ sub new
|
||||
if (defined($self->{strFileName}))
|
||||
{
|
||||
my $oParser = XML::Checker::Parser->new(ErrorContext => 2, Style => 'Tree');
|
||||
$oParser->set_sgml_search_path(defined($strSgmlSearchPath) ? $strSgmlSearchPath : dirname(dirname($0)) . '/doc/xml/dtd');
|
||||
$oParser->set_sgml_search_path(
|
||||
defined($strSgmlSearchPath) ? $strSgmlSearchPath : dirname(dirname(abs_path($0))) . '/doc/xml/dtd');
|
||||
|
||||
my $oTree;
|
||||
|
||||
|
@ -222,6 +222,10 @@
|
||||
<p>Add Centos/RHEL 7 option to documentation build.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Use absolute paths so that <file>./doc.pl</file> runs.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Pick <code>pg_switch_wal()</code>/<code>pg_switch_xlog()</code> based on <postgres/> version.</p>
|
||||
</release-item>
|
||||
|
Loading…
Reference in New Issue
Block a user