blob: 983d2c7d12c40eca6924ad49a0a18a6dfcb7864a [file] [log] [blame]
#!/bin/sh
# Resolve symlinks if necessary, otherwise madness will follow.
# On a GNU system, we could use "-f" to follow all symlinks. BSD based
# systems don't have this flag. *sigh*
BUCK_PATH="$0"
while [ -h "$BUCK_PATH" ]; do
BUCK_PATH=$(readlink "$BUCK_PATH")
done
BUCK_DIR=$(dirname "$BUCK_PATH")
exec python "$BUCK_DIR"/../programs/buck.py "$@"