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

Ben Hyde bhyde at pobox.com
Wed Jan 27 08:20:59 PST 2010


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
bash-3.2$ 



More information about the Openmcl-devel mailing list