mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
36 lines
491 B
Bash
Executable File
36 lines
491 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
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
|
|
;;
|
|
|
|
prerelease)
|
|
script authors
|
|
build weblate
|
|
pushd man ; ./refresh.sh ; popd
|
|
git add -A gui man AUTHORS
|
|
git commit -m 'chore(gui, man, authors): update docs, translations, and contributors'
|
|
;;
|
|
|
|
*)
|
|
build "$@"
|
|
;;
|
|
esac
|