swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: 944c3c123acb5f59ce738eeaea9e2ed227fee194 authored by Rene Brun on 17 January 2008, 07:37:29 UTC
Tagging production release v5-18-00
Tagging production release v5-18-00
Tip revision: 944c3c1
thisroot.sh
# Source this script to set up the ROOT build that this script is part of.
#
# Conveniently an alias like this can be defined in .bashrc:
# alias thisroot=". bin/thisroot.sh"
#
# This script if for the bash like shells, see thisroot.csh for csh like shells.
#
# Author: Fons Rademakers, 18/8/2006
if [ "x${BASH_ARGV[0]}" = "x" ]; then
if [ ! -f bin/thisroot.sh ]; then
echo ERROR: must "cd where/root/is" before calling ". bin/thisroot.sh" for this version of bash!
ROOTSYS=; export ROOTSYS
return
fi
ROOTSYS="$PWD"; export ROOTSYS
else
# get param to "."
THIS=$(dirname ${BASH_ARGV[0]})
ROOTSYS=$(cd ${THIS}/..;pwd); export ROOTSYS
fi
if [ -z "${PATH}" ]; then
PATH=$ROOTSYS/bin; export PATH
else
PATH=$ROOTSYS/bin:$PATH; export PATH
fi
if [ -z "${LD_LIBRARY_PATH}" ]; then
LD_LIBRARY_PATH=$ROOTSYS/lib; export LD_LIBRARY_PATH # Linux, ELF HP-UX
else
LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
fi
if [ -z "${DYLD_LIBRARY_PATH}" ]; then
DYLD_LIBRARY_PATH=$ROOTSYS/lib; export DYLD_LIBRARY_PATH # Mac OS X
else
DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH; export DYLD_LIBRARY_PATH
fi
if [ -z "${SHLIB_PATH}" ]; then
SHLIB_PATH=$ROOTSYS/lib; export SHLIB_PATH # legacy HP-UX
else
SHLIB_PATH=$ROOTSYS/lib:$SHLIB_PATH; export SHLIB_PATH
fi
if [ -z "${LIBPATH}" ]; then
LIBPATH=$ROOTSYS/lib; export LIBPATH # AIX
else
LIBPATH=$ROOTSYS/lib:$LIBPATH; export LIBPATH
fi
if [ -z "${PYTHONPATH}" ]; then
PYTHONPATH=$ROOTSYS/lib; export PYTHONPATH
else
PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH; export PYTHONPATH
fi
if [ -z "${MANPATH}" ]; then
MANPATH=$ROOTSYS/man; export MANPATH
else
MANPATH=$ROOTSYS/man:$MANPATH; export MANPATH
fi
if [ "x`root-config --arch | grep -v win32gcc | grep -i win32`" != "x" ]; then
ROOTSYS="`cygpath -w $ROOTSYS`"
fi