#!@PERL@ @PERLWARN@
#
#   linuxdoc.in
#
#   $Id: linuxdoc.in,v 1.3 2001/09/01 14:16:28 sano Exp $
#
#   LinuxDoc-Tools driver. Calls all other LinuxDoc-Tools components,
#   contains configuration information, etcetera.
# -------------------------------------------------------------------

package main;

sub BEGIN {
  require 5.004;
}

use strict;

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

$prefix  = "@prefix@";
$DataDir = "@DATADIR@";
$BinDir  = "@BINDIR@";

use lib "@DATADIR@";
use lib "@prefix@/perl5";
use lib "@prefix@/lib/perl5";
use lib "@prefix@/share/perl5";

$progs   = {
  "NSGMLS"     => "@NSGMLS@",
  "SGMLSASP"   => "@SGMLSASP@",
  "GROFF"      => "@GROFF@",
  "GROFFMACRO" => "@GROFFMACRO@",
  "AWK"        => "@AWK@"
#  "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:
