[Openmcl-devel] [PATCH] scripts/ccl64

Gary Byers gb at clozure.com
Tue Apr 14 10:14:30 PDT 2009


It's shell script magic! (And a good idea, thanks.)


On Tue, 14 Apr 2009, Ben Hyde wrote:

> This made me happier...
>
>
>  svn diff scripts/ccl64
> Index: scripts/ccl64
> ===================================================================
> --- scripts/ccl64	(revision 11951)
> +++ scripts/ccl64	(working copy)
> @@ -22,6 +22,12 @@
>  fi
>
>  if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
> +    cd `dirname $0`
> +    cd ..
> +    probe "`pwd`"
> +fi
> +
> +if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
>      echo "Can't find CCL directory.  Please edit $0 or"
>      echo "set the environment variable CCL_DEFAULT_DIRECTORY"
>      echo "and try again."
>
>
> -----
>
> Before:
>
> 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.
>
> After:
>
> bash-3.2$ scripts/ccl64
> Welcome to Clozure Common Lisp Version 1.3-r11951M  (DarwinX8664)!
> ?
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
>
>



More information about the Openmcl-devel mailing list