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