@VERSIONING@if [ "${MODULE_VERSION:-}" = "" ]; then
@VERSIONING@	MODULE_VERSION_STACK="@VERSION@"
@VERSIONING@	MODULE_VERSION="@VERSION@"
@VERSIONING@	export MODULE_VERSION
@VERSIONING@else
@VERSIONING@	MODULE_VERSION_STACK="$MODULE_VERSION"
@VERSIONING@fi
@VERSIONING@export MODULE_VERSION_STACK

@VERSIONING@module() { eval `/usr/bin/modulecmd ksh $*`; }
@NOTVERSIONING@module() { eval `/usr/bin/modulecmd ksh $*`; }

MODULESHOME=/usr/share/modules
export MODULESHOME

if [ "${LOADEDMODULES:-}" = "" ]; then
  LOADEDMODULES=
  export LOADEDMODULES
fi

if [ "${MODULEPATH:-}" = "" ]; then
  MODULEPATH=`sed -n 's/[ 	#].*$//; /./H; $ { x; s/^\n//; s/\n/:/g; p; }' ${MODULESHOME}/init/.modulespath`
  export MODULEPATH
fi
