dendrite/build.sh

26 lines
401 B
Bash
Raw Normal View History

#!/bin/sh
2019-05-21 20:56:55 +00:00
ARGS="-v ./cmd/..."
usage() {
echo "Usage: $0 [-r]" 1>&2
echo
echo "-r"
echo " Build with race condition detection"
exit 1
}
while getopts ":r" o; do
case "${o}" in
r)
# Turn on race condition detection
ARGS="-race $ARGS"
;;
*)
usage
;;
esac
done
GOBIN=$PWD/`dirname $0`/bin go install $ARGS