#	This file must be customized when the GeoTAX is installed.
# This can be done either by running the configuresetup script 
# or by editing this file.
# NOTE: On HP-UX systems the Acucbol runtime must be relinked
#       by running the configuresetup script at least once after
#       the initial install or an upgrade. Failure do do so will
#       cause ETM to output a fatal symbol not found error!
#
# Then it must be sourced using the shell built-in command ". ./setup" 
# to set up the environment for the GeoTAX activity
#	each time you log in to your UNIX system.
#
# NOTE: This file is for Bourne type shells; e.g., sh, ksh, bash.
#	For C-shell, use the bin/setup.csh file.
#
#	The following variables must almost always be changed:
# Values are one of LINUX, SOLARIS, AIX or HPUX. 
G1SYS="OTHER"
export G1SYS

# $G1DCG should be set externally to this script.
G1DIR="${G1DCG}/server/modules"                 # Full path to modules
export G1DIR

# This will affect the default DB location when loading data with scripts,
# but does not affect the database resources set through spectrum.
G1GTXDB="${G1DIR}/db"
export G1GTXDB

#	The remaining lines do not normally need to be changed.
#	You may want to delete any that are already defined for
#	your environment by your system administrator, such as
#	LD_LIBRARY_PATH.  If you have any questions,
#	please contact your system administrator first, then
#	if necessary, contact Group 1 Software Technical Support.
#

G1PROD="gtx"
export G1PROD

G1PRODNAME="GeoTAX"       
export G1PRODNAME

# Full path to GeoTAX tree
G1GTX="${G1DIR}/${G1PROD}"
export G1GTX

G1RTS="${G1GTX}/acushare"
export G1RTS

G1DB=$G1GTXDB
export G1DB

G1MAIL=`logname`	       	# User to be notified of EOJ by mail
export G1MAIL

G1TMP="$G1GTX"			# Full path to temp space
export G1TMP

G1JOB="tbd"
export G1JOB

# System dependent environment variables which may or may not be set
# in the following case statement:
#
#   LD_LIBRARY_PATH:	Paths to shared libraries
#   LIBPATH=:		AIX Library Path Variable
#   G1ECHO:		Name of SVR4 echo command
#   G1CP:		cp command string that retains timestamps

if [ "$LD_LIBRARY_PATH" != '' ]
then LD_LIBRARY_PATH=$G1RTS/lib:$G1GTX/lib:${LD_LIBRARY_PATH}
else LD_LIBRARY_PATH=$G1RTS/lib:$G1GTX/lib
fi
export LD_LIBRARY_PATH

if [ "$G1SYS" = "HPUX" ]
then
   if [ "$SHLIB_PATH" != '' ]
   then SHLIB_PATH=$G1RTS/lib:$G1GTX/lib:${SHLIB_PATH}      
   else SHLIB_PATH=$G1RTS/lib:$G1GTX/lib
   fi
   export SHLIB_PATH
fi

if [ "$LIBPATH" != '' ]
then LIBPATH=$G1RTS/lib:/lib:/usr/lib:$G1GTX/lib:$LIBPATH
else LIBPATH=$G1RTS/lib:/lib:/usr/lib:$G1GTX/lib
fi
export LIBPATH

# Setup the echo command for stdout
case $G1SYS in
        SOLARIS|SUNBSD|SunOS) G1ECHO="/usr/5bin/echo"
        ;;
        LINUX)          G1ECHO="echo -e"
        ;;
        *)              G1ECHO="echo"
        ;;
esac
export G1ECHO

G1CP='cp -p' 
export G1CP

G1PRODPATH=$G1GTX              
export G1PRODPATH

# Source the AcuCOBOL-specific configuration =============================
. $G1PRODPATH/bin/setuprts 
case $G1SYS in
        HPUX) SHARED_LIBRARY_LIST="$SHARED_LIBRARY_LIST:libgeostanMT.sl:libspatialMT.sl:libgdlMT.sl:libgtxlic.sl" ;;
           *) SHARED_LIBRARY_LIST="$SHARED_LIBRARY_LIST:libgeostanMT.so:libspatialMT.so:libgdlMT.so:libgtxlic.so" ;;
esac
export SHARED_LIBRARY_LIST
#=========================================================================
# GeoTAX Data Files
#=========================================================================
DD_GTBMPRM="$G1GTX/data/$G1JOB.gcbmprm" # input parameter record file

DD_GTBMNAM="$G1GTX/data/$G1JOB.gcbmnam" # N/A input file
DD_GCBMOUT="$G1GTX/data/$G1JOB.gcbmout" # N/A output file
DD_GCBMREJ="$G1GTX/data/$G1JOB.gcbmrej" # N/A output reject file
DD_GTBMCOK="$G1GTX/data/$G1JOB.gcbmcok"
DD_GTBMNCO="$G1GTX/data/$G1JOB.gcbmnco"
DD_GTBMPLC="$G1GTX/data/$G1JOB.gcbmplc"
DD_GTBMARC="$G1GTX/data/$G1JOB.gtbmarc" # mapping software interface file
DD_PRNTRPT="$G1GTX/data/$G1JOB.prntrpt" # prntrpt file
DD_PRNTXLG="$G1GTX/data/$G1JOB.prntxlg" # prntxlg file

export  DD_GTBMPRM DD_GTBMNAM DD_GCBMREJ DD_PRNTRPT DD_PRNTXLG	\
        DD_GTBMCOK DD_GTBMNCO DD_GTBMPLC DD_GTBMARC DD_GCBMOUT
#=========================================================================
# GeoTAX Databases
#=========================================================================
GTGSADR="$G1GTXDB"                      # Path to Address Database
GTGSZP4="$G1GTXDB/us.z9"                # Zip Plus 4 Database
GTBDCOU="$G1GTXDB/cousub.txb"           # County file
GTBDPLC="$G1GTXDB/place.txb"            # Place file
DD_GTMASTR="$G1GTXDB/gtmastr"           # GeoTax Database

DD_G1GTAUX="$G1GTXDB/g1gtaux"           # User Auxiliary File
DD_G1GTAX2="$G1GTXDB/g1gtax2"           # GTX Auxiliary File
DD_G1GTSSN="$G1GTXDB/g1gtssn"		# State Supplied Street Names
DD_G1GTSSD="$G1GTXDB/g1gtssd"		# State Supplied Details
DD_G1GTSST="$G1GTXDB/g1gtsst"		# State Supplied Table Data
DD_G1GTGSN="$G1GTXDB/g1gtgsn"		# State Supplied Street Names (TS-158 format)
DD_G1GTGSD="$G1GTXDB/g1gtgsd"		# State Supplied Details (TS-158 format)
DD_G1GTGST="$G1GTXDB/g1gtgst"		# State Supplied Table Data (TS-158 format)

DD_GTTAXW="$G1GTXDB/gttaxw"             # Taxware File
DD_GTTAXRT="$G1GTXDB/gttaxrt"           # Pitney Bowes Tax Rate File
DD_GTMSTR2="$G1GTXDB/gtmstr2"           # New GeoTAX cross reference

# Confidence File (optional)
GTZ5GSB="$G1GTXDB/zip5.gsb"             # File for Confidence Code retrieval
GTGCNTY="$G1GTXDB/counties.gsb"         # County Confidence Code file

# Boundary Files
GTBDIPD="$G1GTXDB/ipd.txb"              # Boundary File for Insurance Premium Districts
GTBDPAY="$G1GTXDB/pay.txb"              # Boundary File for Payroll Tax Districts
GTBDPTD="$G1GTXDB/ptd.txb"              # Boundary File for Property Tax Districts
GTBDSPD="$G1GTXDB/spd.txb"              # Boundary File for Special Purpose Districts
GTBDUSR="$G1GTXDB/gtbdusr"              # Optional User Defined Boundary file

#      Optional Payroll Tax Correspondence file

DD_G1GTPTC=$G1GTXDB/g1gtptc

export  GTGSADR GTGSZP4 GTBDCOU GTBDPLC DD_GTMASTR \
	DD_G1GTSSN DD_G1GTSSD DD_G1GTSST DD_G1GTGSN DD_G1GTGSD  \
	DD_G1GTGST DD_GTTAXW DD_GTTAXRT DD_G1GTPTC DD_G1GTAUX DD_G1GTAX2 GTBDIPD \
	GTBDPAY GTBDPTD GTBDSPD GTZ5GSB GTGCNTY GTBDUSR    DD_GTMSTR2
#=========================================================================

PATH=$G1RTS/bin:$PATH;          export PATH
