#!/bin/sh

#-----------------------------------------------------------------------
# Bourne shell environment setup script for Geant4 10.5.1
#
# This script will configure your environment so that any Geant4 supplied
# tools, libraries and data are available in your PATH, library paths etc.
# Data libraries will only be setup if they were installed as part of the
# Geant4 installation.
#
# Source this script to perform the setup.
#
# This script is autogenerated by CMake DO NOT EDIT
#

#-----------------------------------------------------------------------
# Locate directory of self
#
# Self locate script when sourced
if [ -z "$BASH_VERSION" ]; then
  # Not bash, so rely on sourcing from correct location
  if [ ! -f geant4.sh ]; then
    echo 'ERROR: geant4.sh could NOT self-locate Geant4 installation'
    echo 'This is most likely because you are using ksh, zsh or similar'
    echo 'To fix this issue, cd to the directory containing this script'
    echo 'and source it in that directory.'
    return 1
  fi
  geant4_envbindir=$(pwd)
else
  g4sls_sourced_dir=$(dirname ${BASH_ARGV[0]})
  geant4_envbindir=$(cd $g4sls_sourced_dir > /dev/null ; pwd)
fi
      

#-----------------------------------------------------------------------
# Setup Geant4 binary and library paths...
#

if test "x$PATH" = "x" ; then
  export PATH="$geant4_envbindir"
else
  export PATH="$geant4_envbindir":${PATH}
fi



#-----------------------------------------------------------------------
# Setup Third-party binary and library paths...
# - CLHEP
# - Builtin CLHEP used

# - XercesC
# GDML Supported, no configuration of Xerces-C required

#-----------------------------------------------------------------------
# Resource file paths
# - Datasets
export G4NEUTRONHPDATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/G4NDL4.5 > /dev/null ; pwd`"
export G4LEDATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/G4EMLOW7.7 > /dev/null ; pwd`"
export G4LEVELGAMMADATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/PhotonEvaporation5.3 > /dev/null ; pwd`"
export G4RADIOACTIVEDATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/RadioactiveDecay5.3 > /dev/null ; pwd`"
export G4PARTICLEXSDATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/G4PARTICLEXS1.1 > /dev/null ; pwd`"
export G4PIIDATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/G4PII1.3 > /dev/null ; pwd`"
export G4REALSURFACEDATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/RealSurface2.1.1 > /dev/null ; pwd`"
export G4SAIDXSDATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/G4SAIDDATA2.0 > /dev/null ; pwd`"
export G4ABLADATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/G4ABLA3.1 > /dev/null ; pwd`"
export G4INCLDATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/G4INCL1.0 > /dev/null ; pwd`"
export G4ENSDFSTATEDATA="`cd $geant4_envbindir/../../../share/Geant4/Data/Geant4.10.5/G4ENSDFSTATE2.2 > /dev/null ; pwd`"


# - Fonts for Freetype
# FREETYPE SUPPORT NOT AVAILABLE

#----------------------------------------------------------------------

