From e8d9ed3714c4cef6e38553fbfc6ab85461375691 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 2 Mar 2012 14:30:54 -0500 Subject: [PATCH] fixing path for cygwin tools. --- examples/custom_overrides/fred/java_profile.sh | 8 ++++++++ 1 file changed, 8 insertions(+) mode change 100644 => 100755 examples/custom_overrides/fred/java_profile.sh diff --git a/examples/custom_overrides/fred/java_profile.sh b/examples/custom_overrides/fred/java_profile.sh old mode 100644 new mode 100755 index 7d739f8a..713c31a1 --- a/examples/custom_overrides/fred/java_profile.sh +++ b/examples/custom_overrides/fred/java_profile.sh @@ -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 ############################ -- 2.34.1