[Openmcl-devel] Minor fix to scripts/ccl*
R. Matthew Emerson
rme at clozure.com
Wed Jan 27 14:13:41 PST 2010
Gary decided that the fancy ccl scripts had portability issues, and changed them back to simpler ones in the trunk (moving the fancy scripts over to the contrib directory in the process).
http://trac.clozure.com/ccl/changeset/13098
On Jan 27, 2010, at 11:20 AM, Ben Hyde wrote:
> Opps, While that did work for "./script/ccl64" it did not work for
> "script/ccl64". So, new patch:
>
> bash-3.2$ svn diff scripts
> Index: scripts/ccl
> ===================================================================
> --- scripts/ccl (revision 13410)
> +++ scripts/ccl (working copy)
> @@ -14,7 +14,10 @@
>
> if [ -z "$CCL_DEFAULT_DIRECTORY" -a -n "`which readlink`" ]; then
> dir="`readlink $0`"
> - probe "${dir%/scripts/ccl}"
> + [ -z "$dir" ] && dir="$0"
> + dir=`dirname "$dir"`
> + dir=`(cd "$dir/.."; pwd)`
> + probe "$dir"
> fi
>
> if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
> Index: scripts/ccl64
> ===================================================================
> --- scripts/ccl64 (revision 13410)
> +++ scripts/ccl64 (working copy)
> @@ -14,7 +14,10 @@
>
> if [ -z "$CCL_DEFAULT_DIRECTORY" -a -n "`which readlink`" ]; then
> dir="`readlink $0`"
> - probe "${dir%/scripts/ccl64}"
> + [ -z "$dir" ] && dir="$0"
> + dir=`dirname "$dir"`
> + dir=`(cd "$dir/.."; pwd)`
> + probe "$dir"
> fi
>
> if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
More information about the Openmcl-devel
mailing list