From: Chris Koeritz Date: Fri, 2 Mar 2012 19:30:54 +0000 (-0500) Subject: fixing path for cygwin tools. X-Git-Tag: 2.140.90~1543 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=e8d9ed3714c4cef6e38553fbfc6ab85461375691;p=feisty_meow.git fixing path for cygwin tools. --- 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 ############################