#!/bin/sh
  directory="$0"
  [ -L "$directory" ] && directory="`readlink -f \"$directory\"`"
  command="`basename \"$directory\"`"
  directory="`dirname \"$directory\"`"
  directory="`cd \"$directory\";pwd`"
  if [ -x "$directory/bv_env" ]; then
    exec "$directory/bv_env" "$directory/real-bin/$command" "$@"
  else
    exec "$directory/real-bin/$command" "$@"
  fi
