summaryrefslogtreecommitdiffhomepage
path: root/contrib
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-29 08:59:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-29 09:01:44 +0100
commit1aeb193a0277e2f1319dd1e935f8111cf01d301c (patch)
tree7c206cc9f76af539d489e647361cd2c44057e4d3 /contrib
parent3df41c6c9a17e8aa003bbac999a4ea950d6f225b (diff)
contrib, cmake: add stub translation generator
Issue: #500
Diffstat (limited to 'contrib')
-rw-r--r--contrib/translation-stub.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/translation-stub.sh b/contrib/translation-stub.sh
new file mode 100644
index 00000000..bb5ed51d
--- /dev/null
+++ b/contrib/translation-stub.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+build_dir=build-msvc15
+
+set -e
+
+dir="$(dirname -- "$0")"
+cd "$dir/.."
+
+pushd "./$build_dir" >/dev/null
+cmake --build . --target i18n >/dev/null
+popd >/dev/null
+
+rel="$(git describe --tag --alw)"
+
+rm -f "$rel"
+find . -wholename "?*/lang/stub.ts" | zip -q9 "$build_dir/$rel-i18n-stub.zip" -@