Author: scooter
Date: 2012-07-12 11:42:22 -0700 (Thu, 12 Jul 2012)
New Revision: 29864

Modified:
   core3/gui-distribution/trunk/assembly/src/main/bin/cytoscape.sh
Log:
Make sure to do readlink right and pass the result on to CYTOSCAPE_HOME


Modified: core3/gui-distribution/trunk/assembly/src/main/bin/cytoscape.sh
===================================================================
--- core3/gui-distribution/trunk/assembly/src/main/bin/cytoscape.sh     
2012-07-12 18:35:22 UTC (rev 29863)
+++ core3/gui-distribution/trunk/assembly/src/main/bin/cytoscape.sh     
2012-07-12 18:42:22 UTC (rev 29864)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Run cytoscape from a jar file
 # This script is a UNIX-only (i.e. Linux, Mac OS, etc.) version
@@ -8,7 +8,8 @@
 
 script_path="$(dirname -- $0)"
 if [ -h $script_path ]; then
-       script_path="$(readlink $script_path)"
+       link="$(readlink $0)"
+       script_path="$(dirname -- $link)"
 fi
 
 export JAVA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=${DEBUG_PORT}"
@@ -34,7 +35,7 @@
 
 # The Cytoscape home directory contains the "framework" directory
 # and this script.
-CYTOSCAPE_HOME_REL=`dirname "$0"`
+CYTOSCAPE_HOME_REL=$script_path
 CYTOSCAPE_HOME_ABS=`cd "$CYTOSCAPE_HOME_REL"; pwd`
 
 PWD=$(pwd) 

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to