X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=run-sbcl.sh;h=26dc4068928f7cbb60b642f7de6d434f543de833;hb=26d0559df82a00acf85b8ec89541ee8e09bb3e55;hp=f1876c3757ddc1c8ef6b80836c97a816e6f1a2f4;hpb=0cfd289365b37a66fd4108054f0d99e95d396a8a;p=sbcl.git diff --git a/run-sbcl.sh b/run-sbcl.sh index f1876c3..26dc406 100644 --- a/run-sbcl.sh +++ b/run-sbcl.sh @@ -14,14 +14,22 @@ set -e BASE=`dirname "$0"` +if (readlink -f "${BASE}") >/dev/null 2>&1; then + BASE=`readlink -f ${BASE}` +else + opwd=`pwd` + cd "${BASE}" + BASE=`pwd` + cd "${opwd}" +fi CORE_DEFINED=no for arg in $*; do case $arg in - (--core) + --core) CORE_DEFINED=yes ;; - (--help) + --help) echo "usage: run-sbcl.sh sbcl-options*" echo echo "Runs SBCL from the build directory or binary tarball without need for"