From d9573a40ecaf9758690e4482782bebaf7847ba9b Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 10 Oct 2017 15:06:39 +0200 Subject: Doc: Update sgml2* tools The old ones do not work on current Debian. --- doc/sgml2txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc/sgml2txt') diff --git a/doc/sgml2txt b/doc/sgml2txt index 90dc4855..dfc017de 100755 --- a/doc/sgml2txt +++ b/doc/sgml2txt @@ -17,8 +17,10 @@ use strict; use vars qw($prefix $DataDir $BinDir $progs); +use FindBin; + $prefix = "/usr"; -$DataDir = "sbase"; +$DataDir = "$FindBin::Bin/sbase"; $BinDir = "/usr/bin"; use lib "/usr/share/linuxdoc-tools"; @@ -32,9 +34,9 @@ $progs = { "GROFFMACRO" => "-ms", "AWK" => "/usr/share/linuxdoc-tools/awkwhich" }; -$ENV{"SGML_CATALOG_FILES"} = "sbase/dtd/catalog"; +$ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog"; -require "./LinuxDocTools.pm"; +require "$FindBin::Bin/LinuxDocTools.pm"; &LinuxDocTools::init; my @FileList = LinuxDocTools::process_options ("txt", @ARGV); -- cgit v1.2.3