From 1aeb193a0277e2f1319dd1e935f8111cf01d301c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 29 Nov 2016 08:59:46 +0100 Subject: contrib, cmake: add stub translation generator Issue: #500 --- CMakeLists.txt | 2 +- contrib/translation-stub.sh | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 contrib/translation-stub.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index 42015aa9..f5974403 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ cmake_minimum_required(VERSION 2.8.11) set_property(GLOBAL PROPERTY opentrack-all-modules "") set_property(GLOBAL PROPERTY opentrack-all-source-dirs "") -set(opentrack-all-translations nl_NL ru_RU) +set(opentrack-all-translations nl_NL ru_RU stub) include(opentrack-policy) include(opentrack-word-size) 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" -@ -- cgit v1.2.3