From 9e00e34092ca1f2f2e7919430f5756f94e484cdb Mon Sep 17 00:00:00 2001 From: Alexey Guskov Date: Tue, 26 May 2015 15:54:08 +0300 Subject: [PATCH 1/2] Make hack/make.sh work on FreeBSD Signed-off-by: Alexey Guskov --- hack/make.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hack/make.sh b/hack/make.sh index 0ccbdabbe..c6cbbc2a3 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -290,7 +290,12 @@ main() { if [ "$(go env GOHOSTOS)" != 'windows' ]; then # Windows and symlinks don't get along well - ln -sfT "$VERSION" bundles/latest + + if [ "$(go env GOHOSTOS)" != 'freebsd' ]; then + ln -sfT "$VERSION" bundles/latest + else + ln -sfh "$VERSION" bundles/latest + fi fi if [ $# -lt 1 ]; then From f228fb09acffde575c704d501739ad547baf4e24 Mon Sep 17 00:00:00 2001 From: Alexey Guskov Date: Wed, 27 May 2015 10:21:09 +0300 Subject: [PATCH 2/2] script cleaned up Signed-off-by: Alexey Guskov --- hack/make.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hack/make.sh b/hack/make.sh index c6cbbc2a3..60aafbd66 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -291,11 +291,8 @@ main() { if [ "$(go env GOHOSTOS)" != 'windows' ]; then # Windows and symlinks don't get along well - if [ "$(go env GOHOSTOS)" != 'freebsd' ]; then - ln -sfT "$VERSION" bundles/latest - else - ln -sfh "$VERSION" bundles/latest - fi + rm -f bundles/latest + ln -s "$VERSION" bundles/latest fi if [ $# -lt 1 ]; then