From 9a121f5cf58606767e4283c32f719324fba049cc Mon Sep 17 00:00:00 2001 From: NginProject Date: Sun, 7 Oct 2018 03:10:48 +0800 Subject: [PATCH] v0.1.2 --- scripts/build_sputnikvm.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/build_sputnikvm.sh b/scripts/build_sputnikvm.sh index 8706177..239f107 100644 --- a/scripts/build_sputnikvm.sh +++ b/scripts/build_sputnikvm.sh @@ -4,10 +4,6 @@ set -e OUTPUT="$1" -if [ ! -d "Makefile" ]; then - exit -fi - if [ ! "$OUTPUT" == "build" ] && [ ! "$OUTPUT" == "install" ]; then echo "Specify 'install' or 'build' as first argument." exit 1 @@ -59,6 +55,8 @@ esac if [ "$OUTPUT" == "install" ]; then CGO_CFLAGS_ALLOW='-maes.*' CGO_LDFLAGS=$LDFLAGS go install -ldflags '-X main.Version='$(git describe --tags) -tags="sputnikvm netgo" ./cmd/ngind elif [ "$OUTPUT" == "build" ]; then - mkdir -p "$ngin_bindir" + mkdir -p "$root_path/bin" CGO_CFLAGS_ALLOW='-maes.*' CGO_LDFLAGS=$LDFLAGS go build -ldflags '-X main.Version='$(git describe --tags) -o "$root_path/bin/ngind" -tags="sputnikvm netgo" ./cmd/ngind fi + +echo "Save to $root_path/bin/ngind"