Files
syncthing/build.sh
T

36 lines
484 B
Bash
Raw Normal View History

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