diff options
Diffstat (limited to 'solenv/bin/gsicheck')
-rwxr-xr-x | solenv/bin/gsicheck | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/solenv/bin/gsicheck b/solenv/bin/gsicheck new file mode 100755 index 000000000000..9b898c9d5950 --- /dev/null +++ b/solenv/bin/gsicheck @@ -0,0 +1,18 @@ +#!/bin/sh +if [ x${SOLARENV}x = xx ]; then + echo No environment found, please use 'setsolar' +exit 1 +fi + +if [ "${OS?}" = MACOSX ]; then + export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH+${DYLD_LIBRARY_PATH}:}${SOLARVERSION?}/${INPATH?}/lib${UPDMINOREXT} +else + export LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}${SOLARVERSION?}/${INPATH?}/lib${UPDMINOREXT} +fi + +if [ x${SOLARVER}x = xx -o x${UPDMINOREXT}x = xx ]; then + exec $SOLARVERSION/$INPATH/bin/gsicheck "$@" +else + exec $SOLARVERSION/$INPATH/bin$UPDMINOREXT/gsicheck "$@" +fi + |