syncthing/build.sh

36 lines
486 B
Bash
Raw Permalink Normal View History

2014-03-17 17:15:59 +00:00
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
2013-12-21 23:16:49 +00:00
script() {
name="$1"
shift
go run "script/$name.go" "$@"
}
build() {
go run build.go "$@"
}
case "${1:-default}" in
test)
LOGGER_DISCARD=1 build test
;;
bench)
LOGGER_DISCARD=1 build bench
2014-03-02 22:55:08 +00:00
;;
prerelease)
script authors
build transifex
2015-05-30 11:05:37 +00:00
pushd man ; ./refresh.sh ; popd
git add -A gui man AUTHORS
git commit -m 'gui, man, authors: Update docs, translations, and contributors'
;;
2014-03-02 22:55:08 +00:00
*)
build "$@"
2014-03-02 22:55:08 +00:00
;;
esac