~jan-kneschke/mysql-proxy/packet-tracking-assertions

« back to all changes in this revision

Viewing changes to scripts/mysql-proxy-binwrapper.in

  • Committer: Kay Roepke
  • Date: 2009-01-20 12:04:47 UTC
  • Revision ID: kay@mysql.com-20090120120447-fkoxq5ovwf9iyk4v
add the wrapper script/makefile fu to start mysql-proxy without having to set the environment variables

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# $%BEGINLICENSE%$
 
4
# Copyright (C) 2007-2008 MySQL AB, 2008 Sun Microsystems, Inc
 
5
#
 
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.
 
9
#
 
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.
 
14
#
 
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
 
18
#
 
19
# $%ENDLICENSE%$ 
 
20
#
 
21
# wrapper script for sbin/mysql-proxy
 
22
 
 
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" "$@"