xref: /aoo41x/main/solenv/bin/gsicheck (revision cdf0e10c)
1#!/bin/sh
2if [ x${SOLARENV}x = xx ]; then
3    echo No environment found, please use 'setsolar'
4exit 1
5fi
6
7if [ "${OS?}" = MACOSX ]; then
8    export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH:+${DYLD_LIBRARY_PATH}:}${SOLARVERSION?}/${INPATH?}/lib${UPDMINOREXT}
9else
10    export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${SOLARVERSION?}/${INPATH?}/lib${UPDMINOREXT}
11fi
12
13if [ x${SOLARVER}x = xx -o x${UPDMINOREXT}x = xx  ]; then
14    exec $SOLARVERSION/$INPATH/bin/gsicheck "$@"
15else
16    exec $SOLARVERSION/$INPATH/bin$UPDMINOREXT/gsicheck "$@"
17fi
18
19