From 5ab4cbfd634d8f9d2cd8b522e5819c41aa9e70ff Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 11 Nov 2020 16:12:55 +1000 Subject: [PATCH] prep for i18n updates Update scripts will be split into separate repo --- qt/ftl/.gitignore | 1 - qt/ftl/scripts/fetch-latest-translations | 11 ----------- qt/ftl/scripts/upload-latest-templates | 11 ----------- qt/po/.gitignore | 3 --- qt/po/scripts/fetch-latest-translations | 11 ----------- qt/po/scripts/upload-latest-template | 6 ------ repos.bzl | 16 ++++++++-------- rslib/ftl/.gitignore | 1 - rslib/ftl/scripts/fetch-latest-translations | 11 ----------- rslib/ftl/scripts/upload-latest-templates | 12 ------------ 10 files changed, 8 insertions(+), 75 deletions(-) delete mode 100644 qt/ftl/.gitignore delete mode 100755 qt/ftl/scripts/fetch-latest-translations delete mode 100755 qt/ftl/scripts/upload-latest-templates delete mode 100755 qt/po/scripts/fetch-latest-translations delete mode 100755 qt/po/scripts/upload-latest-template delete mode 100644 rslib/ftl/.gitignore delete mode 100755 rslib/ftl/scripts/fetch-latest-translations delete mode 100755 rslib/ftl/scripts/upload-latest-templates diff --git a/qt/ftl/.gitignore b/qt/ftl/.gitignore deleted file mode 100644 index f606d5e0b..000000000 --- a/qt/ftl/.gitignore +++ /dev/null @@ -1 +0,0 @@ -repo diff --git a/qt/ftl/scripts/fetch-latest-translations b/qt/ftl/scripts/fetch-latest-translations deleted file mode 100755 index 108eed1f5..000000000 --- a/qt/ftl/scripts/fetch-latest-translations +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail ${SHELLFLAGS} - -echo "Downloading latest translations..." - -if [ ! -d repo ]; then - git clone https://github.com/ankitects/anki-desktop-ftl repo -fi - -(cd repo && git pull) diff --git a/qt/ftl/scripts/upload-latest-templates b/qt/ftl/scripts/upload-latest-templates deleted file mode 100755 index 7f8cc7681..000000000 --- a/qt/ftl/scripts/upload-latest-templates +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# -# expects to be run from the ftl folder -# - -set -eu -o pipefail ${SHELLFLAGS} - -test -d repo || exit 1 - -rsync -av --delete *.ftl repo/desktop/templates/ -(cd repo && git add desktop; git commit -m update || true; git push) diff --git a/qt/po/.gitignore b/qt/po/.gitignore index 8778829ac..334750928 100644 --- a/qt/po/.gitignore +++ b/qt/po/.gitignore @@ -1,4 +1 @@ -.build -repo -ftl strings*.json diff --git a/qt/po/scripts/fetch-latest-translations b/qt/po/scripts/fetch-latest-translations deleted file mode 100755 index 9d0e04223..000000000 --- a/qt/po/scripts/fetch-latest-translations +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail ${SHELLFLAGS} - -echo "Downloading latest translations..." - -if [ ! -d repo ]; then - git clone https://github.com/ankitects/anki-desktop-i18n repo -fi - -(cd repo && git pull) diff --git a/qt/po/scripts/upload-latest-template b/qt/po/scripts/upload-latest-template deleted file mode 100755 index 5935a1f94..000000000 --- a/qt/po/scripts/upload-latest-template +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail ${SHELLFLAGS} - -scripts/update-po-template -(cd repo && git add desktop; git commit -m update; git push) diff --git a/repos.bzl b/repos.bzl index 534b3f17e..766efadcc 100644 --- a/repos.bzl +++ b/repos.bzl @@ -123,11 +123,11 @@ def register_repos(): core_i18n_commit = "b9fdeadef0b92a6d9acadbce01e43cba53739df6" core_i18n_shallow_since = "1602372775 +0000" - desktop_i18n_commit = "51320cdc51fbfb3d60791467879069ea3a8188a6" - desktop_i18n_shallow_since = "1600900614 +0000" + qtftl_i18n_commit = "51320cdc51fbfb3d60791467879069ea3a8188a6" + qtftl_i18n_shallow_since = "1600900614 +0000" - desktop_i18n_po_commit = "710be3864b356ddf90253034c6acfcb420dffeff" - desktop_i18n_po_shallow_since = "1603966644 +0000" + qtpo_i18n_commit = "710be3864b356ddf90253034c6acfcb420dffeff" + qtpo_i18n_shallow_since = "1603966644 +0000" new_git_repository( name = "rslib_ftl", @@ -157,8 +157,8 @@ filegroup( exports_files(["l10n.toml"]) """, - commit = desktop_i18n_commit, - shallow_since = desktop_i18n_shallow_since, + commit = qtftl_i18n_commit, + shallow_since = qtftl_i18n_shallow_since, remote = "https://github.com/ankitects/anki-desktop-ftl", ) @@ -169,7 +169,7 @@ exports_files(glob(["**/*.pot", "**/*.po"]), visibility = ["//visibility:public"], ) """, - commit = desktop_i18n_po_commit, - shallow_since = desktop_i18n_po_shallow_since, + commit = qtpo_i18n_commit, + shallow_since = qtpo_i18n_shallow_since, remote = "https://github.com/ankitects/anki-desktop-i18n", ) diff --git a/rslib/ftl/.gitignore b/rslib/ftl/.gitignore deleted file mode 100644 index f606d5e0b..000000000 --- a/rslib/ftl/.gitignore +++ /dev/null @@ -1 +0,0 @@ -repo diff --git a/rslib/ftl/scripts/fetch-latest-translations b/rslib/ftl/scripts/fetch-latest-translations deleted file mode 100755 index 1156605a5..000000000 --- a/rslib/ftl/scripts/fetch-latest-translations +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail ${SHELLFLAGS} - -echo "Downloading latest translations..." - -if [ ! -d repo ]; then - git clone https://github.com/ankitects/anki-core-i18n repo -fi - -(cd repo && git pull) diff --git a/rslib/ftl/scripts/upload-latest-templates b/rslib/ftl/scripts/upload-latest-templates deleted file mode 100755 index db5bbf59d..000000000 --- a/rslib/ftl/scripts/upload-latest-templates +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -# -# expects to be run from the ftl folder -# - -set -eu -o pipefail ${SHELLFLAGS} - -test -d repo || exit 1 - -rsync -av --delete *.ftl repo/core/templates/ -(cd repo && git add core; git commit -m update || true; git push) -