extdesc="the Structured Image Extension" full_setup=`pwd`/${BASH_SOURCE} fulldir=${full_setup%/*} fulldir=${fulldir%/.} if [ "x$GSDLHOME" = "x" ] ; then if [ -e ../../gs3-setup.sh ] ; then export gsopt_noexts=1 && pushd ../.. && source ./gs3-setup.sh && popd export gsopt_noexts= elif [ -e ../../setup.bash ] ; then export gsopt_noexts=1 && pushd ../.. && source ./setup.bash && popd export gsopt_noexts= else # backstop GSDLOS=`uname -s | tr '[A-Z]' '[a-z]'` # check for running bash under cygwin if test "`echo $GSDLOS | sed 's/cygwin//'`" != "$GSDLOS" ; then GSDLOS=windows fi fi fi if [ "x$GEXT_STRUCTURED_IMAGE" = "x" ] ; then export GEXT_STRUCTURED_IMAGE=$fulldir export GEXT_STRUCTURED_IMAGE_INSTALLED=$GEXT_STRUCTURED_IMAGE/$GSDLOS export PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/bin:$GEXT_STRUCTURED_IMAGE/bin/script:$PATH if [ "x$LD_LIBRARY_PATH" = "x" ] ; then export LD_LIBRARY_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/lib else export LD_LIBRARY_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/lib:$LD_LIBRARY_PATH fi if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then export DYLD_LIBRARY_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/lib else export DYLD_LIBRARY_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/lib:$DYLD_LIBRARY_PATH fi if [ "x$PKG_CONFIG_PATH" = "x" ] ; then export PKG_CONFIG_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/pkgconfig else export PKG_CONFIG_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/pkgconfig:$PKG_CONFIG_PATH fi extdir=${GEXT_STRUCTURED_IMAGE##*/} if [ "x$GSDLEXTS" = "x" ] ; then export GSDLEXTS=$extdir else export GSDLEXTS=$GSDLEXTS:$extdir fi if [ "x$GSDL3EXTS" = "x" ] ; then export GSDL3EXTS=$extdir else export GSDL3EXTS=$GSDL3EXTS:$extdir fi echo "+Your environment is now setup for $extdesc" else echo "+Your environment is already setup for $extdesc" fi