From d913f69b1f29d4e1301993e8b5f0a183d7c518b6 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 Upstream-commit: 9e00e34092ca1f2f2e7919430f5756f94e484cdb Component: engine --- components/engine/hack/make.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/engine/hack/make.sh b/components/engine/hack/make.sh index 0ccbdabbe7..c6cbbc2a3d 100755 --- a/components/engine/hack/make.sh +++ b/components/engine/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 af2789e761a1fe05144e42ca9c82049d4d8f7775 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 Upstream-commit: f228fb09acffde575c704d501739ad547baf4e24 Component: engine --- components/engine/hack/make.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/components/engine/hack/make.sh b/components/engine/hack/make.sh index c6cbbc2a3d..60aafbd66c 100755 --- a/components/engine/hack/make.sh +++ b/components/engine/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