Skip to content

Commit

Permalink
v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
NginProject committed Oct 6, 2018
1 parent c7aae45 commit 9a121f5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/build_sputnikvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"

0 comments on commit 9a121f5

Please sign in to comment.