# loc/gipenv.csh
# Sets GIPSY environment variables in CERNVMFS installation
# Assumes default installation under $gip_root

if (${?gip_root} == 0) then             # gip_root not defined
    echo "gip_root not defined\!\!"
else
    set client = `hostname`             # get client name
    # setenv  gip_arch    ${fields[2]}      # architecture
    setenv  gip_arch    linux64             # architecture
    setenv  gip_dat     ${gip_root}/dat     # GIPSY data
    setenv  gip_doc     ${gip_root}/doc     # documents
    # setenv  gip_exe ${fields[4]}          # executables
    setenv  gip_exe     ${gip_root}/exe/${gip_arch} # executables
    #setenv  gip_host    ${client}           # GIPSY client
    setenv  gip_host    ${client}           # GIPSY client
    setenv  gip_htm     ${gip_root}/htm     # html's
    setenv  gip_inc     ${gip_root}/inc     # includes
    # setenv  gip_lib     ${fields[5]}      # libraries
    setenv  gip_lib     ${gip_root}/lib/${gip_arch} # executables
    setenv  gip_loc     ${gip_root}/loc     # local setup files
    setenv  gip_mis     ${gip_root}/mis     # miscellaneous files
    # setenv  gip_mode    ${fields[3]}      # mode
    setenv  gip_mode    231                 # mode
    setenv  gip_old     ${gip_root}/old     # old sources
    setenv  gip_sub     ${gip_root}/sub     # sources of procedures
    setenv  gip_sys     ${gip_root}/sys     # system files
    setenv  gip_tsk     ${gip_root}/tsk     # sources of applications
    # setenv  gip_tmp     ${fields[6]}      # temporary files
    setenv  gip_tmp     ${gip_root}/tmp/${gip_arch}  # temporary files
    alias   check       ${gip_sys}/check.csh    # checks for compilation errors
    alias   gipsy       ${gip_sys}/gipsy.csh    # starts default GIPSY
    alias   p           ${gip_exe}/compile  # does compilations
    alias   pack        ${gip_sys}/pack.csh # packs files
    alias   s77         ${gip_exe}/sheltran # sheltran compiler
    alias   xgipsy      ${gip_sys}/xgipsy.csh   # starts X GIPSY
    alias   ngipsy      ${gip_sys}/ngipsy.csh   # set env. for N HERMES
    alias   nhermes     ${gip_exe}/nhermes  # starts N HERMES
    alias   skycalc     ${gip_exe}/skycalc      # command-line...
    alias   skycalq     ${gip_exe}/skycalq      # ...invokable tasks
    alias   visions     ${gip_exe}/visions      #
endif
