From e8adc24c32f28945b60853b0a2c3b4702ec6a1fa Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Wed, 21 Sep 2016 02:02:15 -0700 Subject: [PATCH] functional-tester: build from repo root, vendor --- tools/functional-tester/build | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/functional-tester/build b/tools/functional-tester/build index d98d4a9c3..0786f7346 100755 --- a/tools/functional-tester/build +++ b/tools/functional-tester/build @@ -1,4 +1,10 @@ -#!/bin/sh -e -CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-s" -o bin/etcd-agent ./tools/functional-tester/etcd-agent -CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-s" -o bin/etcd-tester ./tools/functional-tester/etcd-tester +#!/usr/bin/env bash + +if ! [[ "$0" =~ "tools/functional-tester/build" ]]; then + echo "must be run from repository root" + exit 255 +fi + +CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-s" -o bin/etcd-agent ./cmd/tools/functional-tester/etcd-agent +CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-s" -o bin/etcd-tester ./cmd/tools/functional-tester/etcd-tester