summaryrefslogtreecommitdiff
path: root/doc/sgml2html
blob: 774a03d54ec21c77c21ef8972ca36c148e3c63f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/perl 
#
#   sgmltools.in
#
#   $Id$
#
#   SGML-Tools driver. Calls all other SGML-Tools components, contains
#   configuration information, etcetera.
#
package main;

sub BEGIN 
{
  require 5.004;
}
use strict;

use vars qw($prefix $DataDir $BinDir $progs);

$prefix = "/usr";
$DataDir = "sbase";
$BinDir = "/usr/bin";

use lib "/usr/share/linuxdoc-tools";
use lib "/usr/perl5";
use lib "/usr/lib/perl5";
use lib "/usr/share/perl5";
$progs = {
  "NSGMLS" => "/usr/bin/nsgmls",
  "SGMLSASP" => "/usr/bin/sgmlsasp",
  "GROFF" => "/usr/bin/groff",
  "GROFFMACRO" => "-ms",
  "AWK" => "/usr/share/linuxdoc-tools/awkwhich"
};
$ENV{"SGML_CATALOG_FILES"} = "sbase/dtd/catalog";

require "./LinuxDocTools.pm";
&LinuxDocTools::init;

my @FileList = LinuxDocTools::process_options ("html", @ARGV);
for my $curfile (@FileList)
  {
    LinuxDocTools::process_file ($curfile);
  }

exit 0;