From 0006cce41b75a7b0ea6a0f3bbc5e20e1ab33c6c8 Mon Sep 17 00:00:00 2001 From: Gonzalo Peci Date: Mon, 10 Aug 2015 16:55:59 +1200 Subject: [PATCH] When using MinGW gopath uses ; as separators, if we use : it strips everything after the driver letter. EG: C:\GO_Working\ gets stripped to C and makes ```make dev``` and ```make``` fail --- scripts/build.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index c265b88c2..364e221dd 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -62,7 +62,16 @@ case $(uname) in ;; esac OLDIFS=$IFS -IFS=: MAIN_GOPATH=($GOPATH) +IFS=: +case $(uname) in + MINGW*) + IFS=";" + ;; + MSYS*) + IFS=";" + ;; +esac +MAIN_GOPATH=($GOPATH) IFS=$OLDIFS # Copy our OS/Arch to the bin/ directory