#!/usr/bin/perl 
#
#   linuxdoc.in
#
#   LinuxDoc-Tools driver. Calls all other LinuxDoc-Tools components,
#   contains configuration information, etcetera.
# -------------------------------------------------------------------

package main;

use 5.006;
use strict;

use lib "/usr/share/linuxdoc-tools";
use lib "/usr/share/linuxdoc-tools";

use LinuxDocTools::Utils qw{ldt_which};

our $prefix             = "/usr";
our $isoentities_prefix = "/usr";
our $DataDir            = "/usr/share/linuxdoc-tools";
our $AuxBinDir          = "/usr/bin";

our $progs   = {
  "SGMLSASP"   => ldt_which("sgmlsasp"),
  "NSGMLS"     => ldt_which("nsgmls","onsgmls"),
  "GROFF"      => ldt_which("groff"),
  "GROFFMACRO" => "-ms",
#  "NKF" => "@NKF@"
};

require LinuxDocTools;
&LinuxDocTools::init;

my @FileList = LinuxDocTools::process_options ($0, @ARGV);

foreach my $curfile (@FileList) {
  &LinuxDocTools::process_file ($curfile);
}

exit 0;

# Local Variables:
#  mode: perl
# End:
