syncthing/build.sh

36 lines
484 B
Bash
Raw Normal View History

2014-03-17 10:15:59 -07:00
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
2013-12-21 16:16:49 -07: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 15:55:08 -07:00
;;
prerelease)
script authors
gui: Switch to Weblate for translations (#8777) * Normalize EOL before EOF. * Import current Transifex state, only translated. Skip duplicated and completely empty languages. * Re-add untranslated strings to JSON files. These are now treated correctly as untranslated, but present with the original (English) translation key. * Update valid language codes and names. * Refer to Weblate instead of Transifex for translations. * lang-es: Copy untranslated strings from es-ES. * Integrate translation changes from Weblate. Translated using Weblate (Polish) Currently translated at 100.0% (512 of 512 strings) Translation: Syncthing/GUI strings Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/pl/ Translated using Weblate (Danish) Currently translated at 98.6% (505 of 512 strings) Translation: Syncthing/GUI strings Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/da/ Translated using Weblate (Lithuanian) Currently translated at 85.4% (441 of 516 strings) Translation: Syncthing/GUI strings Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/lt/ Translated using Weblate (French) Currently translated at 100.0% (516 of 516 strings) Translation: Syncthing/GUI strings Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/fr/ Translated using Weblate (Danish) Currently translated at 98.6% (509 of 516 strings) Translation: Syncthing/GUI strings Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/da/ Translated using Weblate (Spanish) Currently translated at 100.0% (516 of 516 strings) Translation: Syncthing/GUI strings Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/es/ * translation update uses weblate --------- Co-authored-by: Jakob Borg <jakob@kastelo.net>
2023-02-07 04:22:08 -07:00
build weblate
2015-05-30 04:05:37 -07: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 15:55:08 -07:00
*)
build "$@"
2014-03-02 15:55:08 -07:00
;;
esac