sgml2latex 889 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/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;

18
use vars qw($prefix $DataDir $BinDir $progs);
19 20

$prefix = "/usr";
21
$DataDir = "sbase";
22 23
$BinDir = "/usr/bin";

24
use lib "/usr/share/linuxdoc-tools";
25 26
use lib "/usr/perl5";
use lib "/usr/lib/perl5";
27
use lib "/usr/share/perl5";
28 29 30 31
$progs = {
  "NSGMLS" => "/usr/bin/nsgmls",
  "SGMLSASP" => "/usr/bin/sgmlsasp",
  "GROFF" => "/usr/bin/groff",
32 33
  "GROFFMACRO" => "-ms",
  "AWK" => "/usr/share/linuxdoc-tools/awkwhich"
34
};
35
$ENV{"SGML_CATALOG_FILES"} = "sbase/dtd/catalog";
36

37 38
require "./LinuxDocTools.pm";
&LinuxDocTools::init;
39

40
my @FileList = LinuxDocTools::process_options ("latex", @ARGV);
41 42
for my $curfile (@FileList)
  {
43
    LinuxDocTools::process_file ($curfile);
44 45 46
  }

exit 0;