From 602ed10e898d24161dda2a85908eb0542ce44d73 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 16 Jan 2014 15:52:42 -0800 Subject: [PATCH] scripts: devcompile works properly in Cygwin --- scripts/devcompile.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/devcompile.sh b/scripts/devcompile.sh index f4f26d7e7..4a4274c5b 100755 --- a/scripts/devcompile.sh +++ b/scripts/devcompile.sh @@ -56,5 +56,10 @@ export XC_OS=$(go env GOOS) ./scripts/compile.sh # Move all the compiled things to the PATH +case $(uname) in + CYGWIN*) + GOPATH="$(cygpath $GOPATH)" + ;; +esac IFS=: MAIN_GOPATH=( $GOPATH ) cp pkg/${XC_OS}_${XC_ARCH}/* ${MAIN_GOPATH}/bin