File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / bird2 / doc / sgml2latex
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 21 16:03:57 2019 UTC (5 years ago) by misho
Branches: bird2, MAIN
CVS tags: v2_0_7p0, HEAD
bird2 ver 2.0.7

#!/usr/bin/perl 
#
#   sgmltools.in
#
#   $Id: sgml2latex,v 1.1.1.1 2019/10/21 16:03:57 misho Exp $
#
#   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);

use FindBin;

$prefix = "/usr";
$DataDir = "$FindBin::Bin/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"
};

if (! -x $progs->{"NSGMLS"})
  { $progs->{"NSGMLS"} = "/usr/bin/onsgmls"; }

$ENV{"SGML_CATALOG_FILES"} = "$DataDir/dtd/catalog" .
  (defined $ENV{SGML_CATALOG_FILES} ? ":$ENV{SGML_CATALOG_FILES}" : "");

require "$FindBin::Bin/LinuxDocTools.pm";
&LinuxDocTools::init;

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

exit 0;

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>