summaryrefslogtreecommitdiffhomepage
path: root/contrib/translation-stub.sh
blob: bb5ed51d84acac39fcb19b9bc724c9d238c031aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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" -@