summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSergey Udaltsov <sergey.udaltsov@gmail.com>2021-12-17 16:07:22 +0000
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2021-12-17 16:07:22 +0000
commit055ea1cc4e14759fb8a076531da4c4df373387a5 (patch)
tree4c329206e92b199534735f0b17730f144efedb77 /scripts
parentee7a9653e0856427c69d4326327157dcfc91b14d (diff)
downloadxkeyboard-config-055ea1cc4e14759fb8a076531da4c4df373387a5.tar.gz
New script to pull translations
Earlier it was "make sync-po"
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pull_translations.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/pull_translations.sh b/scripts/pull_translations.sh
new file mode 100755
index 0000000..abf4387
--- /dev/null
+++ b/scripts/pull_translations.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# This script is for pulling the latest translations from Translation Project
+#
+# Assumption: executed from the top level xkeyboard-config directory
+#
+
+project=xkeyboard-config
+
+if [ ! -d po ] ; then
+ echo "No po subdirectory in the current directory, the script has to be executed from the top level $project directory"
+ exit 1
+fi
+
+rsync -Lrtvz translationproject.org::tp/latest/$project/ po