mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
25 lines
401 B
Bash
Executable file
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
|