#!/bin/bash

# sudo apt-get install realpath
# sudo zypper install coreutils

# realpath does not exist or is not installed on all distributions
# (e.g. SLES)
# SLES behaves sligthly different than other distributions
REALPATH=$(which realpath 2>/dev/null)
ret=$?

if [ $ret -eq 0 ] ; then
  lMyBase=$(dirname $(realpath $0))
else
  lMyBase=$(dirname $(readlink -f $0))
fi

$lMyBase/mysql_bman.php $@
