]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Doc: Detect SP/OpenSP automatically
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 19 Feb 2019 17:32:45 +0000 (18:32 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 19 Feb 2019 17:32:45 +0000 (18:32 +0100)
INSTALL
doc/sgml2html
doc/sgml2latex
doc/sgml2txt

diff --git a/INSTALL b/INSTALL
index b9ca3e00da6a55066498394c3214f3c3a2a3b8b3..b3f66f135122bb2b1dc3cdc8897dc3dce98fe0ce 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -40,8 +40,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.
index 6072a7a3677a235bbc4f00ef975edbd6cfeeff1e..ea8e8c92b5dd4a7cb9dd8dce53f3750f4badddb3 100755 (executable)
@@ -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}" : "");
 
index c48f787d88227be8443831920ca9f97465849ffa..79c6df03ed999ec503af7f2efef0f7a1fca1592b 100755 (executable)
@@ -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}" : "");
 
index af0bcb49a57737c939914a35ea9f87b396425d4a..013479fe0ac8a7a8a35258f8f572d4bc1104db93 100755 (executable)
@@ -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}" : "");