cetus/scripts/cetus-binwrapper.in

26 lines
529 B
Plaintext
Raw Normal View History

2018-03-06 14:00:39 +08:00
#!/bin/sh
#
# wrapper script for self-contained packaging
#
# we assume that this script is located in
#
# {basedir}/bin/cetus
#
# and wants to call
#
# {basedir}/libexec/cetus
#
# You can inject a wrapper like
#
# $ MYSQL_PROXY_WRAPPER=valgrind ./bin/cetus
#
scriptdir=`dirname $0`
scriptname=`basename $0`
scriptdir=`(cd "$scriptdir/"; pwd)`
scriptdir=`dirname "$scriptdir"`
@DYNLIB_PATH_VAR@="$@DYNLIB_PATH_VAR@:$scriptdir/lib/"
export @DYNLIB_PATH_VAR@
exec $MYSQL_PROXY_WRAPPER "$scriptdir/libexec/$scriptname" "$@"