mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +00:00
Make deploy_translations script more verbose (#2471)
This commit is contained in:
parent
a5445ba96a
commit
5abc3427ee
@ -1,21 +1,32 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#########
|
||||||
|
#### Push new translation files to cutter-translations
|
||||||
|
#### so Crowdin can fetch them
|
||||||
|
|
||||||
#######################
|
log() {
|
||||||
#### Push new translation files
|
echo "[TRANSLATIONS] $1"
|
||||||
|
}
|
||||||
|
|
||||||
|
log "Script started"
|
||||||
|
|
||||||
# Update submodule
|
# Update submodule
|
||||||
|
log "Updating translations..."
|
||||||
cd ${TRAVIS_BUILD_DIR}/src
|
cd ${TRAVIS_BUILD_DIR}/src
|
||||||
git submodule update translations
|
git submodule update translations
|
||||||
cd translations
|
cd translations
|
||||||
git pull origin master
|
git pull origin master
|
||||||
|
|
||||||
# Generate Crowdin single translation file from cutter_fr.ts
|
# Generate Crowdin single translation file from cutter_fr.ts
|
||||||
|
log "Generating single translation file"
|
||||||
lupdate ../Cutter.pro
|
lupdate ../Cutter.pro
|
||||||
cp ./fr/cutter_fr_FR.ts ./Translations.ts
|
cp ./fr/cutter_fr_FR.ts ./Translations.ts
|
||||||
|
|
||||||
# Push it so Crowdin can find new strings, and later push updated translations
|
# Push it so Crowdin can find new strings, and later push updated translations
|
||||||
|
log "Committing..."
|
||||||
git add Translations.ts
|
git add Translations.ts
|
||||||
git commit -m "Updated translations"
|
git commit -m "Updated translations"
|
||||||
|
log "Pushing..."
|
||||||
export GIT_SSH_COMMAND="/usr/bin/ssh -i $TRAVIS_BUILD_DIR/scripts/deploy_translations_rsa"
|
export GIT_SSH_COMMAND="/usr/bin/ssh -i $TRAVIS_BUILD_DIR/scripts/deploy_translations_rsa"
|
||||||
echo "Pushing new translation strings..."
|
|
||||||
git push "git@github.com:radareorg/cutter-translations.git" HEAD:refs/heads/master
|
git push "git@github.com:radareorg/cutter-translations.git" HEAD:refs/heads/master
|
||||||
|
|
||||||
|
log "Script done!"
|
||||||
|
Loading…
Reference in New Issue
Block a user