mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-02 09:34:58 -05:00
Update translations before merging branches
This commit is contained in:
parent
c043be3aa4
commit
a63ba6bc4f
29
release-tool
29
release-tool
@ -232,6 +232,13 @@ checkChangeLog() {
|
|||||||
fi
|
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
|
trap exitTrap SIGINT SIGTERM
|
||||||
|
|
||||||
@ -308,6 +315,7 @@ merge() {
|
|||||||
logInfo "Changing to source directory..."
|
logInfo "Changing to source directory..."
|
||||||
cd "${SRC_DIR}"
|
cd "${SRC_DIR}"
|
||||||
|
|
||||||
|
checkTransifexCommandExists
|
||||||
checkGitRepository
|
checkGitRepository
|
||||||
checkReleaseDoesNotExist
|
checkReleaseDoesNotExist
|
||||||
checkWorkingTreeClean
|
checkWorkingTreeClean
|
||||||
@ -318,6 +326,25 @@ merge() {
|
|||||||
|
|
||||||
logInfo "All checks pass, getting our hands dirty now!"
|
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}'..."
|
logInfo "Checking out target branch '${TARGET_BRANCH}'..."
|
||||||
git checkout "$TARGET_BRANCH"
|
git checkout "$TARGET_BRANCH"
|
||||||
|
|
||||||
@ -440,6 +467,8 @@ build() {
|
|||||||
checkWorkingTreeClean
|
checkWorkingTreeClean
|
||||||
checkOutputDirDoesNotExist
|
checkOutputDirDoesNotExist
|
||||||
|
|
||||||
|
logInfo "All checks pass, getting our hands dirty now!"
|
||||||
|
|
||||||
logInfo "Checking out release tag '${TAG_NAME}'..."
|
logInfo "Checking out release tag '${TAG_NAME}'..."
|
||||||
git checkout "$TAG_NAME"
|
git checkout "$TAG_NAME"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user