4
# Copyright (C) 2007-2008 MySQL AB, 2008 Sun Microsystems, Inc
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; version 2 of the License.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
# wrapper script for sbin/mysql-proxy
23
scriptdir=`dirname $0`
24
scriptname=`basename $0`
25
scriptdir=`(cd "$scriptdir/"; pwd)`
26
scriptdir=`dirname "$scriptdir"`
27
@DYNLIB_PATH_VAR@="$scriptdir"/lib/@PACKAGE_NAME@
28
LUA_PATH="$scriptdir"/share/@PACKAGE_NAME@/?.lua
29
LUA_CPATH="$scriptdir"/lib/@PACKAGE_NAME@/?.so
30
export @DYNLIB_PATH_VAR@ LUA_PATH LUA_CPATH
31
exec "$scriptdir/sbin/$scriptname" "$@"