pull-from-transifex.sh: pull newly added languages as well
[quassel.git] / scripts / tx-sync.sh
diff --git a/scripts/tx-sync.sh b/scripts/tx-sync.sh
new file mode 100755 (executable)
index 0000000..c60d6af
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+quasselsrc=/usr/src/quassel
+localpobranch=i18n-tx-sync
+
+pushd "$quasselsrc" && ( 
+  currb=$(git name-rev --name-only HEAD)
+  git checkout -q $localpobranch && (
+    EDITOR=/bin/true VISUAL=/usr/bin/editor "$quasselsrc"/po/pull-from-transifex.sh -f &&
+      git push -q
+  ); git checkout -q "$currb"
+); popd