[Openmcl-devel] [PATCH] scripts/ccl64

Ben Hyde bhyde at pobox.com
Tue Apr 14 10:19:24 PDT 2009


Opps, that should not permanently change the working directory.

On Apr 14, 2009, at 12:59 PM, 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