diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-05-04 13:55:14 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-05-04 14:00:43 -0700 |
commit | 42eee8a2e1f10a5cc7e91f96af2e08b9525db623 (patch) | |
tree | 690383ae5598992c4f4a8525d9690fd3be3647af /packaging/ios/build.sh | |
parent | d668a89df7a92d5fa34f580280932a2bbd5076fc (diff) | |
download | subsurface-42eee8a2e1f10a5cc7e91f96af2e08b9525db623.tar.gz |
iOS build: create the translations to be bundled
And add them to the bundle.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ios/build.sh')
-rw-r--r-- | packaging/ios/build.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index dd1531792..e872346e3 100644 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -355,7 +355,18 @@ done # now combine the arm libraries into fat libraries cp -a install-root-arm64 install-root -cd install-root/lib +pushd install-root/lib for LIB in $(find . -type f -name \*.a); do lipo ../../install-root-armv7/lib/$LIB ../../install-root-arm64/lib/$LIB ../../install-root-x86_64/lib/$LIB -create -output $LIB done +popd + +pushd ${SUBSURFACE_SOURCE}/translations +SRCS=$(ls *.ts | grep -v source) +popd +pushd Subsurface-mobile +mkdir -p translations +for src in $SRCS; do + ${IOS_QT}/5.6/ios/bin/lrelease ${SUBSURFACE_SOURCE}/translations/$src -qm translations/${src/.ts/.qm} +done +popd |