#! /bin/sh
#
# expkitvars -- Export all common LPS global shell variables
#
# @(#)expkitvars	1.6	LPS_UNX_COM	02/19/95
#
# Copyright 1994   Digital Equipment Corporation, Maynard, MA
#
# DESCRIPTION:
#
# This script file is used to provide centralized exportation of
# all LPS shell variables used in a global manner within the LPS
# scripting environment.
#
# NOTE:  This script has a VERY TIGHT BINDING with the "setkitvars" script.
#        Any changes made to setkitvars should be reconciled here, and
#        vice versa.
###

: ${ABORT:="kill -1 $$"}

# First export all platform-INDEPENDENT shell variables that are
# set within the setkitvars script

export ABORT
export BINKIT
export CUTEND
export CUTSTART
export FUNCS
export HELP
export INSTFLAG
export KITCLASS
export KITNAME
export KITTYPE
export LINKCHECKOPTS
export LOCALHOST
export LPSDEBUG
export LPSODB
export LPSODBLIST
export PAGER
export PATH
export PCKIT
export PRODUCT
export SHKIT
export SRCKIT
export TMPDIR

# Now source either the kit-specific or generic exportation script

if [ -f scripts/expvars.$KITCLASS ]
then
    varsfile=scripts/expvars.$KITCLASS
else
    varsfile=scripts/expvars.XXX
fi

if . $varsfile
then
    :    
else
    echo
    echo "    Unable to export kit variables from file: $varsfile"
    echo
    $ABORT
fi

unset varsfile
