2009-07-01 07:16:08 -05:00
|
|
|
#!/bin/sh
|
|
|
|
if [ x${SOLARENV}x = xx ]; then
|
|
|
|
echo No environment found, please use 'setsolar'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# localize.pl calls localize_sl in solver bin directory which depends on dynamic
|
|
|
|
# libraries in solver lib directory but has no correct RPATH (or equivalent):
|
|
|
|
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
|
|
|
|
|
2010-01-22 11:50:33 -06:00
|
|
|
if [ x${SOLARVER}x = xx -o x${UPDMINOREXT}x = xx ]; then
|
2009-07-01 07:16:08 -05:00
|
|
|
exec perl -w $SOLARVERSION/$INPATH/bin/localize.pl "$@"
|
|
|
|
else
|
2010-01-22 11:50:33 -06:00
|
|
|
exec perl -w $SOLARVERSION/$INPATH/bin$UPDMINOREXT/localize.pl "$@"
|
2009-07-01 07:16:08 -05:00
|
|
|
fi
|
|
|
|
|