Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-01-29 01:02:26 +0300
committerJanek Bevendorff <janek@jbev.net>2017-01-29 01:02:26 +0300
commita63ba6bc4fdd93e010ded82664a19e5ba16d2ac9 (patch)
tree61cb37670f6db706d2590e2832c555d8fbd9df55 /release-tool
parentc043be3aa44e22126a1c88d19da2ed8e008b4363 (diff)
Update translations before merging branches
Diffstat (limited to 'release-tool')
-rwxr-xr-xrelease-tool29
1 files changed, 29 insertions, 0 deletions
diff --git a/release-tool b/release-tool
index 282b4db01..2e3dad3d6 100755
--- a/release-tool
+++ b/release-tool
@@ -232,6 +232,13 @@ checkChangeLog() {
fi
}
+checkTransifexCommandExists() {
+ command -v tx > /dev/null
+ if [ 0 -ne $? ]; then
+ exitError "Transifex tool 'tx' not installed! Please install it using 'pip install transifex-client'"
+ fi
+}
+
trap exitTrap SIGINT SIGTERM
@@ -308,6 +315,7 @@ merge() {
logInfo "Changing to source directory..."
cd "${SRC_DIR}"
+ checkTransifexCommandExists
checkGitRepository
checkReleaseDoesNotExist
checkWorkingTreeClean
@@ -317,6 +325,25 @@ merge() {
checkChangeLog
logInfo "All checks pass, getting our hands dirty now!"
+
+ logInfo "Checking out source branch..."
+ git checkout "$SOURCE_BRANCH"
+
+ logInfo "Updating language files..."
+ ./share/translations/update.sh
+ if [ 0 -ne $? ]; then
+ exitError "Updating translations failed!"
+ fi
+ git diff-index --quiet HEAD --
+ if [ $? -ne 0 ]; then
+ git add ./share/translations/*
+ logInfo "Committing changes..."
+ if [ "" == "$GPG_GIT_KEY" ]; then
+ git commit -m "Update translations"
+ else
+ git commit -m "Update translations" -S"$GPG_GIT_KEY"
+ fi
+ fi
logInfo "Checking out target branch '${TARGET_BRANCH}'..."
git checkout "$TARGET_BRANCH"
@@ -440,6 +467,8 @@ build() {
checkWorkingTreeClean
checkOutputDirDoesNotExist
+ logInfo "All checks pass, getting our hands dirty now!"
+
logInfo "Checking out release tag '${TAG_NAME}'..."
git checkout "$TAG_NAME"