Doc: Allow overriding $SGML_CATALOG_FILES using distribution specific paths

This commit is contained in:
Robert Scheck 2018-12-04 18:14:04 +01:00 committed by Ondrej Zajicek (work)
parent f26bf60fb5
commit 0e4920632a
3 changed files with 6 additions and 3 deletions

View file

@ -34,7 +34,8 @@ $progs = {
"GROFFMACRO" => "-ms", "GROFFMACRO" => "-ms",
"AWK" => "/usr/share/linuxdoc-tools/awkwhich" "AWK" => "/usr/share/linuxdoc-tools/awkwhich"
}; };
$ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog"; $ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog" .
(defined $ENV{SGML_CATALOG_FILES} ? ":$ENV{SGML_CATALOG_FILES}" : "");
require "$FindBin::Bin/LinuxDocTools.pm"; require "$FindBin::Bin/LinuxDocTools.pm";
&LinuxDocTools::init; &LinuxDocTools::init;

View file

@ -34,7 +34,8 @@ $progs = {
"GROFFMACRO" => "-ms", "GROFFMACRO" => "-ms",
"AWK" => "/usr/share/linuxdoc-tools/awkwhich" "AWK" => "/usr/share/linuxdoc-tools/awkwhich"
}; };
$ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog"; $ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog" .
(defined $ENV{SGML_CATALOG_FILES} ? ":$ENV{SGML_CATALOG_FILES}" : "");
require "$FindBin::Bin/LinuxDocTools.pm"; require "$FindBin::Bin/LinuxDocTools.pm";
&LinuxDocTools::init; &LinuxDocTools::init;

View file

@ -34,7 +34,8 @@ $progs = {
"GROFFMACRO" => "-ms", "GROFFMACRO" => "-ms",
"AWK" => "/usr/share/linuxdoc-tools/awkwhich" "AWK" => "/usr/share/linuxdoc-tools/awkwhich"
}; };
$ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog"; $ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog" .
(defined $ENV{SGML_CATALOG_FILES} ? ":$ENV{SGML_CATALOG_FILES}" : "");
require "$FindBin::Bin/LinuxDocTools.pm"; require "$FindBin::Bin/LinuxDocTools.pm";
&LinuxDocTools::init; &LinuxDocTools::init;