[citemplates/abderrahim/post-process: 1/2] add splitting of locale files



commit 633343d9eda90da2e3a6975c390fc14b9e2bdb0a
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Mon Jul 22 16:20:34 2019 +0100

    add splitting of locale files
    
    This makes flatpak-builder generate .Locale extensions

 flatpak/flatpak_ci_initiative_v1.yml | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/flatpak/flatpak_ci_initiative_v1.yml b/flatpak/flatpak_ci_initiative_v1.yml
index 834a829..58582b9 100644
--- a/flatpak/flatpak_ci_initiative_v1.yml
+++ b/flatpak/flatpak_ci_initiative_v1.yml
@@ -7,6 +7,15 @@
     # are passed except the config-args because we build it ourselves
     - flatpak build flatpak_app meson --prefix=/app ${MESON_ARGS} _build
     - flatpak build flatpak_app ninja -C _build install
+    - |
+      flatpak build flatpak_app bash -c \
+      'for lang in $(ls /app/share/locale/); do \
+        ll=$(echo ${lang} | egrep -o '^[a-z]+'); \
+        test ${ll} == en && continue; \
+        mkdir -p /app/share/runtime/locale/${ll}/share; \
+        mv /app/share/locale/${lang} /app/share/runtime/locale/${ll}/share/; \
+        ln -s ../../share/runtime/locale/${ll}/share/${lang} /app/share/locale; \
+      done'
     - flatpak-builder --finish-only --repo=repo ${BRANCH:+--default-branch=$BRANCH} flatpak_app 
${MANIFEST_PATH}
     # Run automatic tests inside the Flatpak env
     - >


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]