1.0.42.1: add release script
[sbcl.git] / run-sbcl.sh
index 74b91cb..83f40c1 100644 (file)
@@ -14,6 +14,7 @@
 set -e
 
 BASE=`dirname "$0"`
+BASE=`(readlink -f ${BASE} 2> /dev/null || echo ${BASE})`
 CORE_DEFINED=no
 
 for arg in $*; do
@@ -40,7 +41,7 @@ if [ "$CORE_DEFINED" = "no" ]; then
 fi
 
 if [ -x "$BASE"/src/runtime/sbcl -a -f "$BASE"/output/sbcl.core ]; then
-    echo "(running SBCL from: `pwd`)"
+    echo "(running SBCL from: $BASE)"
     SBCL_HOME="$BASE"/contrib "$BASE"/src/runtime/sbcl $ARGUMENTS "$@"
 else
     echo "No built SBCL here ($BASE): run 'sh make.sh' first!"