summaryrefslogtreecommitdiff
path: root/run-sbcl.sh
diff options
context:
space:
mode:
authorNikodemus Siivola <nikodemus@random-state.net>2010-08-31 12:46:41 +0000
committerNikodemus Siivola <nikodemus@random-state.net>2010-08-31 12:46:41 +0000
commit26d0559df82a00acf85b8ec89541ee8e09bb3e55 (patch)
tree5c0b42663fea21fb4a848ec6761e87fdfbfce8a0 /run-sbcl.sh
parent97d73de3875a70f0686b0b692509c1a30e3b44a4 (diff)
1.0.42.7: fix shell scripts on Solaris (and FreeBSD?)
* Patch by Josh Elsasser, lp#615497. * Fixes for run-sbcl.sh and tests/subr.sh on Solaris, some of which I believe were also necessary on FreeBSD. * A missing #include needed on Solaris is also added.
Diffstat (limited to 'run-sbcl.sh')
-rw-r--r--run-sbcl.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/run-sbcl.sh b/run-sbcl.sh
index 83f40c1d3..26dc40689 100644
--- a/run-sbcl.sh
+++ b/run-sbcl.sh
@@ -14,15 +14,22 @@
set -e
BASE=`dirname "$0"`
-BASE=`(readlink -f ${BASE} 2> /dev/null || echo ${BASE})`
+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"