fixing path for cygwin tools.
authorChris Koeritz <fred@gruntose.com>
Fri, 2 Mar 2012 19:30:54 +0000 (14:30 -0500)
committerChris Koeritz <fred@gruntose.com>
Fri, 2 Mar 2012 19:30:54 +0000 (14:30 -0500)
examples/custom_overrides/fred/java_profile.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 7d739f8..713c31a
@@ -63,6 +63,10 @@ fi
 if [ ! -d "$JAVA_HOME" -a -z "$(whichable java 2>/dev/null)" ]; then
   intuition_failure JAVA_HOME
   unset JAVA_BIN_PIECE
+else
+  if [ ! -z "$(uname -a | grep -i cygwin)" ]; then
+    JAVA_HOME=$(echo $JAVA_HOME | sed -e 's/^\(.\):/\/cygdrive\/\1/')
+  fi
 fi
 
 ############################
@@ -93,6 +97,10 @@ fi
 # final option is to whine.
 if [ ! -d "$ECLIPSE_DIR" -a -z "$(whichable eclipse 2>/dev/null)" ]; then
   intuition_failure ECLIPSE_DIR
+else
+  if [ ! -z "$(uname -a | grep -i cygwin)" ]; then
+    ECLIPSE_DIR=$(echo $ECLIPSE_DIR | sed -e 's/^\(.\):/\/cygdrive\/\1/')
+  fi
 fi
 
 ############################