# --- Copyright University of Sussex 1991. All rights reserved. ----------
### --- Copyright University of Birmingham 2001. All rights reserved. ------
# File:             $poplocal/local/com/popenv
# Purpose:          Set up 'local' Poplog environment variables for users of csh or tcsh
# Author:           John Williams, Feb 14 1990 (see revisions)
# Extended:         Aaron Sloman, Sep 14 1995, 7 Oct 2001
# Documentation:    REF system
# Related Files:    $popcom/popenv $popsys/popenv  $poplocal/local/com/poplog
#                   Also .sh versions

## Override default poplocalbin defined in $popcom/popenv
## This should be in part of the poplog tree not part of the local tree
## This may be unnecessary if symbolic links have been set up right
setenv poplocalbin      $usepop/poplocalbin

## Convenient local environment variable
setenv local            $poplocal/local

# Check if startup.psv has been build
if ( -f $poplocalbin/startup.psv ) then
    setenv pop_pop11 "+$poplocalbin/startup.psv"
    setenv pop_prolog "$pop_pop11 +$poplocalbin/prolog.psv"
    setenv pop_clisp "$pop_pop11 +$poplocalbin/clisp.psv"
    setenv pop_pml "$pop_pop11 +$poplocalbin/pml.psv"
    setenv pop_xved "$pop_pop11 +$poplocalbin/xved.psv"
    setenv pop_xvedpro "$pop_pop11 +$poplocalbin/xvedpro.psv"
    setenv pop_xvedlisp "$pop_pop11 +$poplocalbin/xvedlisp.psv"
    setenv pop_ved "$pop_pop11 :sysinitcomp();ved"
    setenv pop_help "$pop_pop11 :sysinitcomp();help"
    setenv pop_ref "$pop_pop11 :sysinitcomp();ref"
    setenv pop_teach "$pop_pop11 :sysinitcomp();teach"
    setenv pop_doc "$pop_pop11 :sysinitcomp();doc"
    setenv pop_im "$pop_pop11 :sysinitcomp();im"

    # Optional
    setenv pop_eliza "$pop_pop11 +$poplocalbin/eliza.psv"

    # See others defined in $popsys/popenv
endif


# --- Revision History ---------------------------------------------------
# --- Aaron Sloman: 3 Apr 2002
#   Reorganised com directory to include this
# --- Aaron Sloman: 2 Nov 2001
#       Inserted some missing '#' symbols in next entry!!
# --- Aaron Sloman: 30 Oct 2001
#            Restored some missing bits
#            (Cannot depend on $popsys/popenv)
# --- Aaron Sloman: 23 Aug 2001
#           Tidied up Birmingham local version and added comments
# --- Aaron Sloman: 2 Oct 1997:
#           Changed "-" to "+" in environment variables
# --- Aaron Sloman Feb 1995
#           Set up for enlarged local startup.psv, and added xved
# --- Aaron Sloman Apr 25 1993
#       Added $local definition
# --- Aaron Sloman Apr 10 1993
#       removed $pop_machinetype
# --- Robert John Duncan, Jul 11 1991
#       Added xved
# --- Robert John Duncan, May 29 1991
#       Made all pop_X variables relative to pop_pop11
