From 27a4a95294def640b5a4230e370c7c6b4de7d0de Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 25 Nov 2022 12:49:52 +0100 Subject: [PATCH] chore: remove unused scripts --- front/scripts/i18n-compile.sh | 10 ++++++++-- front/scripts/i18n-extract.sh | 10 ++++++++-- front/scripts/i18n-weblate-to-origin.sh | 16 ---------------- front/scripts/utils.sh | 11 ----------- scripts/check-api-deps.sh | 5 ----- 5 files changed, 16 insertions(+), 36 deletions(-) delete mode 100755 front/scripts/i18n-weblate-to-origin.sh delete mode 100755 front/scripts/utils.sh delete mode 100755 scripts/check-api-deps.sh diff --git a/front/scripts/i18n-compile.sh b/front/scripts/i18n-compile.sh index 3142c749a..4ede9b2e0 100755 --- a/front/scripts/i18n-compile.sh +++ b/front/scripts/i18n-compile.sh @@ -3,8 +3,14 @@ set -eux cd "$(dirname "$0")/.." # change into base directory -# shellcheck disable=SC1091 -source scripts/utils.sh + +npm_binaries() { + if command -v yarn > /dev/null; then + yarn bin + else + npm bin + fi +} locales=$(jq -r '.[].code' src/locales.json | grep -v 'en_US') mkdir -p src/translations diff --git a/front/scripts/i18n-extract.sh b/front/scripts/i18n-extract.sh index 473f05e77..b244fe086 100755 --- a/front/scripts/i18n-extract.sh +++ b/front/scripts/i18n-extract.sh @@ -3,8 +3,14 @@ set -eux cd "$(dirname "$0")/.." # change into base directory -# shellcheck disable=SC1091 -source scripts/utils.sh + +npm_binaries() { + if command -v yarn > /dev/null; then + yarn bin + else + npm bin + fi +} locales=$(jq -r '.[].code' src/locales.json) locales_dir="locales" diff --git a/front/scripts/i18n-weblate-to-origin.sh b/front/scripts/i18n-weblate-to-origin.sh deleted file mode 100755 index 25bd13040..000000000 --- a/front/scripts/i18n-weblate-to-origin.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -set -eux - -integration_branch="translations-integration" - -git remote add weblate https://translate.funkwhale.audio/git/funkwhale/front/ || echo "remote already exists" -git fetch weblate -git checkout weblate/develop -git reset --hard weblate/develop -git checkout -b "$integration_branch" || git checkout "$integration_branch" -git reset --hard weblate/develop -git push -f origin "$integration_branch" - -echo "Branch created on pushed on origin/$integration_branch" -echo "Open a merge request by visiting https://dev.funkwhale.audio/funkwhale/funkwhale/merge_requests/new?merge_request%5Bsource_branch%5D=$integration_branch" diff --git a/front/scripts/utils.sh b/front/scripts/utils.sh deleted file mode 100755 index 6470ae07a..000000000 --- a/front/scripts/utils.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -set -eux - -npm_binaries() { - if command -v yarn > /dev/null; then - yarn bin - else - npm bin - fi -} diff --git a/scripts/check-api-deps.sh b/scripts/check-api-deps.sh deleted file mode 100755 index 582d0f447..000000000 --- a/scripts/check-api-deps.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -outdated=$(pip list -o) -echo -n "$outdated" -exit "$(echo -n "$outdated" | wc -l)"