Commit 900fda44 authored by Ondrej Zajicek (work)'s avatar Ondrej Zajicek (work)
Browse files

Doc: Detect SP/OpenSP automatically

parent 3a8ca7ab
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -41,8 +41,3 @@ For compiling BIRD documentation you also need:

 - Linuxdoc-Tools
 - LaTeX

Note that build scripts for BIRD documentation expects 'nsgmls' from
James Clark's SP suite, while modern distributions use 'onsgmls' from
OpenSP suite. It is possible to build BIRD documentation with OpenSP
tools, but it requires manually tweaking paths in doc/sgml2* scripts.
+4 −0
Original line number Diff line number Diff line
@@ -34,6 +34,10 @@ $progs = {
  "GROFFMACRO" => "-ms",
  "AWK" => "/usr/share/linuxdoc-tools/awkwhich"
};

if (! -x $progs->{"NSGMLS"})
  { $progs->{"NSGMLS"} = "/usr/bin/onsgmls"; }

$ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog" .
  (defined $ENV{SGML_CATALOG_FILES} ? ":$ENV{SGML_CATALOG_FILES}" : "");

+4 −0
Original line number Diff line number Diff line
@@ -34,6 +34,10 @@ $progs = {
  "GROFFMACRO" => "-ms",
  "AWK" => "/usr/share/linuxdoc-tools/awkwhich"
};

if (! -x $progs->{"NSGMLS"})
  { $progs->{"NSGMLS"} = "/usr/bin/onsgmls"; }

$ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog" .
  (defined $ENV{SGML_CATALOG_FILES} ? ":$ENV{SGML_CATALOG_FILES}" : "");

+4 −0
Original line number Diff line number Diff line
@@ -34,6 +34,10 @@ $progs = {
  "GROFFMACRO" => "-ms",
  "AWK" => "/usr/share/linuxdoc-tools/awkwhich"
};

if (! -x $progs->{"NSGMLS"})
  { $progs->{"NSGMLS"} = "/usr/bin/onsgmls"; }

$ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog" .
  (defined $ENV{SGML_CATALOG_FILES} ? ":$ENV{SGML_CATALOG_FILES}" : "");