You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
753 B
36 lines
753 B
24 years ago
|
#!@l_binsh@
|
||
|
##
|
||
|
## TSM Run-Time Executable Wrapper Script
|
||
|
##
|
||
|
|
||
|
prog="`echo $0 | sed -e 's;.*/\([^/]*\)$;\1;'`"
|
||
|
prefix="@l_prefix@"
|
||
|
|
||
|
if [ ! -f "$prefix/libexec/tsmc/$prog" ]; then
|
||
|
echo "TSM: invalid program name" 1>&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
DSM_CONFIG="$prefix/libexec/tsmc/dsm.opt"
|
||
|
export DSM_CONFIG
|
||
|
|
||
|
DSM_DIR="$prefix/libexec/tsmc"
|
||
|
export DSM_DIR
|
||
|
|
||
|
unset LD_LIBRARY_PATH
|
||
|
for dir in /lib /usr/lib /usr/ccs/lib; do
|
||
|
if [ -d $dir ]; then
|
||
|
if [ ".$LD_LIBRARY_PATH" = . ]; then
|
||
|
LD_LIBRARY_PATH="$dir"
|
||
|
else
|
||
|
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$dir"
|
||
|
fi
|
||
|
fi
|
||
|
done
|
||
|
if [ -d "$prefix/libexec/tsmc/lib" ]; then
|
||
|
LD_LIBRARY_PATH="$prefix/libexec/tsmc/lib:${LD_LIBRARY_PATH}"
|
||
|
fi
|
||
|
|
||
|
exec $prefix/libexec/tsmc/$prog "$@"
|
||
|
|