Statistics
| Branch: | Revision:

iof-bird-daemon / doc / sgml2latex @ d7c06285

History | View | Annotate | Download (889 Bytes)

1 6e06e6ee Pavel Machek
#!/usr/bin/perl 
2
#
3
#   sgmltools.in
4
#
5
#   $Id$
6
#
7
#   SGML-Tools driver. Calls all other SGML-Tools components, contains
8
#   configuration information, etcetera.
9
#
10
package main;
11
12
sub BEGIN 
13
{
14
  require 5.004;
15
}
16
use strict;
17
18 9c763123 Martin Mares
use vars qw($prefix $DataDir $BinDir $progs);
19 6e06e6ee Pavel Machek
20
$prefix = "/usr";
21 9c763123 Martin Mares
$DataDir = "sbase";
22 6e06e6ee Pavel Machek
$BinDir = "/usr/bin";
23
24 9c763123 Martin Mares
use lib "/usr/share/linuxdoc-tools";
25 6e06e6ee Pavel Machek
use lib "/usr/perl5";
26
use lib "/usr/lib/perl5";
27 9c763123 Martin Mares
use lib "/usr/share/perl5";
28 6e06e6ee Pavel Machek
$progs = {
29
  "NSGMLS" => "/usr/bin/nsgmls",
30
  "SGMLSASP" => "/usr/bin/sgmlsasp",
31
  "GROFF" => "/usr/bin/groff",
32 9c763123 Martin Mares
  "GROFFMACRO" => "-ms",
33
  "AWK" => "/usr/share/linuxdoc-tools/awkwhich"
34 6e06e6ee Pavel Machek
};
35 9c763123 Martin Mares
$ENV{"SGML_CATALOG_FILES"} = "sbase/dtd/catalog";
36 6e06e6ee Pavel Machek
37 9c763123 Martin Mares
require "./LinuxDocTools.pm";
38
&LinuxDocTools::init;
39 6e06e6ee Pavel Machek
40 9c763123 Martin Mares
my @FileList = LinuxDocTools::process_options ("latex", @ARGV);
41 6e06e6ee Pavel Machek
for my $curfile (@FileList)
42
  {
43 9c763123 Martin Mares
    LinuxDocTools::process_file ($curfile);
44 6e06e6ee Pavel Machek
  }
45
46
exit 0;