#! /bin/sh -e


########################################################################
#
# variables about the Lire installation
#
########################################################################

# dereference exec_prefix, for libexecdir and bindir dependency
prefix=/usr
exec_prefix=${prefix}

cat <<EOF
LR_PERL5LIBDIR="/usr/share/perl5"
LR_PREFIX="/usr"
LR_BINDIR="${exec_prefix}/bin"
LR_DATADIR="${prefix}/share/lire"
LR_LIBDIR="/usr/lib/lire"
LR_MANDIR="${prefix}/share/man"
LR_SYSCONFDIR="/etc/lire"
LR_SCHEMASDIR="${prefix}/share/lire/schemas"
LR_REPORTSDIR="${prefix}/share/lire/reports"
LR_FILTERSDIR="${prefix}/share/lire/filters"
LR_DOCDIR="${prefix}/share/lire/doc/lire"
LR_TEMPLATESDIR=${prefix}/share/templates
LR_SPECSDIR=${prefix}/share/config-spec
LR_PLUGINSDIR=/etc/plugins
EOF

exit 0

POD=<<'EOPOD'

=pod

=head1 NAME

lr_env - Gives information on the location of the current Lire installation

=head1 SYNOPSIS

eval `B<lr_env> `

=head1 DESCRIPTION

B<lr_env> prints on STDOUT shell code which can be evaled to access
information on the Lire installation.

The following variables are printed:

=over

=item LR_PREFIX

The prefix where Lire is installed.

=item LR_LIBDIR

The directory where the supporting scripts are installed.

=item LR_SYSCONFDIR

The directory where configuration files are installed.

=item LR_BINDIR

The directory where user binary are installed.

=item LR_MANDIR

The directory where man pages are installed.

=item LR_PLUGINSDIR

The directory where Lire::Plugin initializers are installed.

=item LR_SCHEMASDIR

The path where DLF schemas are installed.

=item LR_REPORTSDIR

The path where report specifications are installed.

=item LR_FILTERSDIR

The path where filter specifications are installed.

=item LR_DOCDIR

The directory where documentation is installed.

=item LR_SPECSDIR

The path where XML configuration specifications are installed.

=item LR_TEMPLATESDIR

The path where XML report templates are installed.

=item LR_PERL5LIBDIR

The directory where platform independant perl modules are installed.

=back

=head1 VERSION

$Id: lr_env.in,v 1.7 2006/07/23 13:16:32 vanbaal Exp $

=head1 COPYRIGHT

Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.

=head1 AUTHOR

Francis J. Lacoste <flacoste@logreport.org>

=cut

EOPOD


