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