@lay:4421l1

Listing 1. The Environment File

# define env vars for those doing OS-specific stuff:
# OSNAME (currently either IRIX or IRIX64)
# OSMAJOR will be major number of the OS version (currently 5 or 6)
# OSMINOR will be the minor number of the OS version
#
# eg snoopy running 6.2 will have:
# OSNAME: IRIX64
# OSMAJOR: 6
# OSMINOR: 2
#
# lucy running 6.2 will have:
# OSNAME=IRIX
# OSMAJOR=6
# OSMINOR=2
#
# linus running 5.3 will have:
# OSNAME=IRIX
# OSMAJOR=5
# OSMINOR=3
#
# (also works on Suns...)
# gpk 10/7/98
setenv OSNAME `uname`                  
setenv OSMAJOR `uname -r | cut -c1`
setenv OSMINOR  `uname -r |  cut -d. -f 2`


# set up environment vars pointing to the tiger core files

setenv TSS_HOME     /apps/projects/tiger2/Product
setenv TSS_BIN      ${TSS_HOME}/bin/${OSNAME}
setenv TSS_LIB      ${TSS_HOME}/lib/${OSNAME}
setenv TSS_MSG_SET  ${TSS_HOME}/msg_set
setenv TSS_DATA     ${TSS_HOME}/data
setenv TSS_OPER     ${TSS_HOME}/operator
setenv TSS_SRC      ${TSS_HOME}/src


# set up environment vars pointing to the project specific
# files -gpk

setenv ARSI_HOME     /apps/projects/ACRT
setenv ARSI_BIN      ${ARSI_HOME}/bin/${OSNAME}
setenv ARSI_LIB      ${ARSI_HOME}/lib/${OSNAME}
setenv ARSI_INCLUDE  ${ARSI_HOME}/include
setenv ARSI_MSG_SET  ${ARSI_HOME}/msg_set
setenv ARSI_DATA     ${ARSI_HOME}/data
setenv ARSI_OPER     ${ARSI_HOME}/operator
setenv ARSI_SRC      ${ARSI_HOME}/src


# for the entity library -gpk 1/13/98

setenv ARSI_ENT_DEFS ${ARSI_DATA}/entity_defs

# since the parse_headers_lib was tigerized, it now looks at
# TSS_PATH and TSS_INCLUDE instead of ARSI_PATH and ARSI_INCLUDE
# so make sure we have those two set. -gpk 10/1/98
setenv TSS_INCLUDE ${ARSI_INCLUDE}
setenv TSS_PATH ${ARSI_MSG_SET}:${ARSI_INCLUDE}

# Set environment variables to compile and run VAPS panels
#
# we're now vaps 5.X in all but mfd, so use .vp_init5.1
# -gpk 3/29/99

if(-e $ARSI_OPER/.vp_init5.1) then
        source $ARSI_OPER/.vp_init5.1            
endif


# ========== path mangling ===============
#
# following are a series of "if" statements that
# check to see if a directory exists. if it does,
# it's added into the "path_add" environment
# variable. at the end of this section the directories
# accumulated there are added into the "path" variable.
# don't worry: additions to "path" get reflected to "PATH"
# by the system.

set path_add=

# Set path to get the ping command.
if(-d /usr/etc) then
        set path_add=/usr/etc
endif

# added for uname.exe
if (-d $ARSI_HOME) then
        set path_add= ($path_add $ARSI_HOME)
endif


# set path to get co, ci on snoopy -gpk 12/22/98

if(-d /apps/local/rcs_irix62/bin) then
        set path_add=($path_add /apps/local/rcs_irix62/bin )
endif

# pick up emacs on ACRT machines

if (-d /usr/freeware/bin) then
        set path_add=($path_add /usr/freeware/bin )
endif

# pick up emacs, etc from nfs disk if we're not on acrt* -gpk 1/29/99

if (-d /apps/local/bin) then
        set path_add = ($path_add /apps/local/bin)
endif

# dump all of path_add into path

# Following is for BX 4.0 1/13/99 kaj,gpk

setenv BX_HOME /usr/local/bx40

if (-d ${BX_HOME}/bin) then
        set path_add = ($path_add ${BX_HOME}/bin)
endif

set path= ($path . $path_add)

#
#
# ======== end path mangling ==================


# Set environment variable for parseargs - DP
setenv USAGECNTL "Verbose + Options + LongOpts"


# S1000 environment variables
#setenv S1KPROJ /usr6/s1000/proj        # where the project data is
#setenv S1KPATH /usr6/s1000/v3.8.1      # where the libs/bin/etc is
setenv S1KPROJ /apps/s1000/proj
setenv S1KPATH  /apps/s1000/v3.8.1

setenv S1KEPATH ${ARSI_BIN}
setenv TOOLS    ${TSS_SRC}/s1kextract



#
# test to see if DI guy is installed (in /usr/local/BDI).
# if it is, we'll set the env var it expects (BDI). if this
# is set the IGS Makefiles will try to link it in. If you have
# DI installed and don't want the IG to use it, do the following:
#
# unsetenv BDI
# cd ~/src/igs
# make clean
# make
# make install
#                                       
# otherwise the makefiles will attempt to autodetect it
# and use it (and the matching ig_common_lib) if it's there.
#
# -gpk 8/23/99


if(-d /usr/local/BDI) then
        setenv BDI /usr/local/BDI
endif


# Set the Performer path for the IGS.  Include any terr_db areas that
# you want to game in.
#
# if core doesn't have terrain files you want,
#     pull them from local directory
# -gpk
#
# removed atlantis, chorwon directories -gpk 1/27/99
# added atlantis for linux testing gpk 2/2/00
#                           


setenv PFPATH
${ARSI_DATA}/visual_models/vehicles:${ARSI_DATA}/visual_models/cultural_textures:${ARSI_DATA}/visual_models/special_effects:${ARSI_DATA}/terr_db/mckenna:${ARSI_DATA}/terr_db/mckenna/dyna:${ARSI_DATA}/terr_db/mckenna/textures:${ARSI_DATA}/terr_db/ntc_spline:${ARSI_DATA}/terr_db/ntc_tin:${ARSI_DATA}/terr_db/stowe:${S1KPROJ}/stowe/textures:/apps/s1000/proj/ntc_tin-0205/flight/textures:/usr/local/BDI/geometry:${ARSI_DATA}/terr_db/atlantis/textures


# set ACRT_DESTOP to ON for a desktop system
#                    OFF for a full up system.
#
# this setting is overridden by the contents of /var/tmp/local_env
# and used for debugging configurations.
# vg 6/23/99
#

# If you are running a Desktop please set this next line to ON
setenv ACRT_DESKTOP  OFF

# ignore ...used for Install testing on common files system
f(-e /var/tmp/local_env) then
        source /var/tmp/local_env
else
setenv FS_DESK $ACRT_DESKTOP
endif

if ( $FS_DESK == ON ) then
#Please Modify these three (3) lines for your local ACRT Desktop
constellation
setenv ACRT_0  acrt4_1
setenv ACRT_1  acrt4_2
setenv ACRT_2  acrt4_3
else
# Please Modify below this line for your local ACRT Full-Up
# constellation
setenv ACRT_0  castor
setenv ACRT_1  castor
setenv ACRT_2  castor
setenv ACRT_3  castor
setenv ACRT_4  castor
setenv ACRT_5  castor
setenv ACRT_6  castor
endif                


# ******************* Desktop ONLY *************************************
# Please set $ACRT_X in the line below for DESKTOP Display Console
# Note:   $ACRT_0 is the O2....$ACRT_1 is the NT
#         If Using NT...it works best with extra VGA cable to the Aydin.
#         $ACRT_0 is the default setting. Use Alt-F1 or Alt-F3 to toggle
#         on/off O2 Desktop between Sim Exec and Panels
#         Please ignore this for Full-Ups...always uses the NCD Terminal
setenv ACRT_CONTROL_CONSOLE ${ACRT_0}


# ACRT_GATE - set this environment variable to the interface name
# if the gateway machine. (ie the second ethernet card of the O2).
# SGI's default name for the second ethernet on <host> is gate-<host>.
# for instance the host acrt4_1 has a gateway name of gate-acrt4_1

# first we'll try to automate this. if you're a full-up the second
# ethernet card is in $ACRT_4. the default name for the interface
# would be gate-$ACRT4. if you're a desktop the second ethernet
# would be $ACRT_0.  the default gateway would be gate-$ACRT_0.
#
                      
if ( $FS_DESK == ON ) then
setenv ACRT_GATE gate-$ACRT_0
else
setenv ACRT_GATE gate-$ACRT_4
endif


# or if you don't want that, feel free to hard-code it.

setenv ACRT_GATE castor

#
# serial ports have different device names in Irix and Linux.
# in Irix we use:
#                /dev/ttyd1 (port 1, usually touchscreen) and
#                /dev/ttyd2 (port 2, usually a grip)
# in Linux they are:
#                /dev/ttyS0 (port 1, usually touchscreen) and
#                /dev/ttyS1 (port 2, usually a grip)
#
# so let's define the env vars the sim_config files will use:  
#       ARSI_SERIAL_PORT_ONE
#       ARSI_SERIAL_PORT_TWO
#
#
if ( Linux == $OSNAME ) then
        setenv ARSI_SERIAL_PORT_ONE /dev/ttyS0
        setenv ARSI_SERIAL_PORT_TWO /dev/ttyS1
else
        setenv ARSI_SERIAL_PORT_ONE /dev/ttyd1
        setenv ARSI_SERIAL_PORT_TWO /dev/ttyd2
endif

# and allow the users to set where the calibrate programs look:
#
# setenv ARSI_GRIP_CALIBRATE_PORT $ARSI_SERIAL_PORT_TWO
#

# the modsaf databases have different filenames depending on
# endian-ness. the big endians (like sgi) are *.c7b. the
# small-endians (like intel) are *.c7l. since the vehicle
# init file calls out which file to use (and both big and
# small endians have to use the same file at the same time)
# let's use another env var for the file suffix.
#
if ( Linux == $OSNAME ) then
        setenv ARSI_CTDB_FILE_SUFFIX c7l
else
        setenv ARSI_CTDB_FILE_SUFFIX c7b
endif

