[Openmcl-devel] Minor fix to scripts/ccl*

Ben Hyde bhyde at pobox.com
Wed Jan 27 07:57:52 PST 2010


Having done

$ ./dx86cl64
Welcome to Clozure Common Lisp Version 1.3-r12926M  (DarwinX8664)!
? (rebuild-ccl :full t)
...

It always frustrates me that this happens

bash-3.2$ scripts/ccl64
Can't find CCL directory.  Please edit scripts/ccl64 or
set the environment variable CCL_DEFAULT_DIRECTORY
and try again.
bash-3.2$

The following patch resolves the problem.   The problem is that  
readlink returns nothing when the given file is real, rather than a  
link.

And, thanks for the work you all do! - ben



bash-3.2$ svn diff scripts
Index: scripts/ccl
===================================================================
--- scripts/ccl	(revision 13410)
+++ scripts/ccl	(working copy)
@@ -14,6 +14,9 @@

  if [ -z "$CCL_DEFAULT_DIRECTORY"  -a  -n "`which readlink`" ]; then
      dir="`readlink $0`"
+    if [ -z "$dir" ] ; then
+      dir="$0"
+    fi
      probe "${dir%/scripts/ccl}"
  fi

Index: scripts/ccl64
===================================================================
--- scripts/ccl64	(revision 13410)
+++ scripts/ccl64	(working copy)
@@ -14,6 +14,9 @@

  if [ -z "$CCL_DEFAULT_DIRECTORY"  -a  -n "`which readlink`" ]; then
      dir="`readlink $0`"
+    if [ -z "$dir" ] ; then
+      dir="$0"
+    fi
      probe "${dir%/scripts/ccl64}"
  fi

bash-3.2$ 



More information about the Openmcl-devel mailing list