dendrite/build.sh
2019-07-18 15:30:12 +01:00

25 lines
401 B
Bash
Executable file

#!/bin/sh
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