summaryrefslogtreecommitdiff
path: root/solenv/bin/localize_sl
blob: df8205cf6d2286a155169885a03fd732227c2c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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/localize_sl "$@"
else
    exec $SOLARVERSION/$INPATH/bin$UPDMINOREXT/localize_sl "$@"
fi