# vim:syntax=sh
#
# $Id: profile_lean.in,v 1.14 2006/07/23 13:16:27 vanbaal Exp $

#
# Copyright (C) 2000-2003 Stichting LogReport Foundation LogReport@LogReport.org
#
#     This file is part of Lire.
#
#     Lire 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. 
#

#
# profile_lean - set up lean and mean environment
#
if test -z "$LR_PROFILE_LEAN_INCLUDED"
then
    # get newly created files mode -rw-r----- : we don't want to get
    # sensitive logdata worldreadable!
    umask 027

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

    PATH=$libdir:$libdir/convertors:${exec_prefix}/bin:$PATH
    export PATH

    # Make sure perl can find our perl modules.
    perllibdirs="/usr/local/share/perl5"
    if test -z "$PERL5LIB"
    then
        PERL5LIB="$perllibdirs"
    else
        PERL5LIB="$perllibdirs:$PERL5LIB"
    fi
    export PERL5LIB

    LR_PROFILE_LEAN_INCLUDED=1
    export LR_PROFILE_LEAN_INCLUDED
fi

# Local Variables:
# mode: sh
# End:
