summaryrefslogtreecommitdiffhomepage
path: root/contrib/translation-stub.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/translation-stub.sh')
-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" -@