# Commands and environment variables for local additions
# to BIRCH

if [ $BIRCH_DEBUG -eq 1 ]  
   then
      echo Running $BIRCH/local/admin/local.profile.source  
fi

# $BIRCH_LOGGING=1 means that when users log in a message will
# be appended to local/admin/logins.log, and when gde is launched,
# a message is appended to local/admin/gde.log
#
# DO NOT use this option if the BIRCH filesystem is mounted
# read-only for users.
#
#BIRCH_LOGGING=1
#export BIRCH_LOGGING

#-------------------------- ACEDB
# These don't have to be the same as the values for GDE,
# but it's simpler to do it that way.
ACE_EDIT_COMMAND=$GDE_TEXTEDIT
ACE_PDF_COMMAND=$GDE_PDFVIEW
ACE_PS_COMMAND=$GDE_PSVIEW
ACE_BITMAP_VIEWER=$GDE_BITMAP_VIEWER
export ACE_EDIT_COMMAND ACE_PDF_COMMAND ACE_PS_COMMAND ACE_BITMAP_VIEWER

# This section puts the current working directory into the $PATH.
# This is not possible for sh and ash, so only the host name is
# displayed with these shells.

case "$SHELL" in

     */sh)
	  case "$BIRCH_PLATFORM" in
	    solaris-sparc)
              PS1={$HOSTNAME}; export PS1
	      ;;
	    linux-*)
              PS1='{$HOSTNAME:$PWD}'; export PS1
	      ;;
	    *) 
              PS1={$HOSTNAME}; export PS1
	      ;;
	  esac        
     ;;
     
     */ksh)
       PS1='{$HOSTNAME:$PWD}'; export PS1
       # Note: in ksh, the 'cd' command echos the new directory
       # name, whereas other shells are silent when you run 'cd'.
     ;;
     */zsh)
       PROMPT={%m:%/}; export PROMPT
     ;;     
          
     */bash)
       PS1='{\H:$PWD}'; export PS1
     ;;
     /bin/ash)
       PS1={$HOSTNAME}; export PS1     
     ;;     
     *)
       PS1={$HOSTNAME}; export PS1     
     ;;
     
esac

# ---------------  JAVA -------------------------------------
# JAVA - where is it? Which one do we use?
#


# Location of specific versions of Java
# Depending on the program, you need to specify either which
# directory has Java (JAVAx_HOME), or the full path to the java command (JAVAx_CMD).
# Some examples are given below. 
# You can list all versions of Java that are installed on your system by
# typeing 'findjava.sh'.
export JAVA8_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"
export JAVA8_CMD="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java"
export JAVA11_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
export JAVA11_CMD="/usr/lib/jvm/java-11-openjdk-amd64/bin/java"
#export JAVA17_HOME="/usr/lib/jvm/java-17-openjdk-17.0.1.0.12-1.rolling.el7.x86_64"
#export JAVA17_CMD="/usr/lib/jvm/java-17-openjdk-17.0.1.0.12-1.rolling.el7.x86_64/bin/java"

# Force Python to use python3
# alias python="python3"

#------------------------ TEMPORARY DIRECTORIES --------------
# This variable may be changed to a directory where
# temporary files may be written for some
# scripts which run programs that generate very large
# temporary files. Do NOT use /tmp. If that directory
# gets too full, it can seriously impede the entire system!
#BIRCH_TMP=/usr/local/tmp
#export BIRCH_TMP


