From 797969983d38149f4a0ea1f960becfac88fc2b8e Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 19 Feb 2019 18:32:45 +0100 Subject: Doc: Detect SP/OpenSP automatically --- doc/sgml2txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/sgml2txt') diff --git a/doc/sgml2txt b/doc/sgml2txt index af0bcb49..013479fe 100755 --- a/doc/sgml2txt +++ b/doc/sgml2txt @@ -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}" : ""); -- cgit v1.2.3