schildichat-desktop/regenerate_i18n.sh
2021-09-18 00:21:21 +02:00

30 lines
535 B
Bash
Executable File

#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
branch=${BRANCH:-"sc"}
pushd "$mydir" > /dev/null
source ./merge_helpers.sh
# Fetch to get latest strings for current version
# ToDo: Find out actual versions in case it's not yet merged
forall_repos git fetch upstream
# Check branch
check_branch $branch
forall_repos check_branch $branch
# Ensure clean git state
forall_repos check_clean_git
# Automatic i18n reversion
automatic_i18n_reversion y
# Automatic i18n adjustment
automatic_i18n_adjustment
popd > /dev/null