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



commit a2d19d77284769e741e4169c42b5f97794ee6a9c
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.yml | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/flatpak/flatpak_ci_initiative.yml b/flatpak/flatpak_ci_initiative.yml
index 5cc62a5..afdd5e6 100644
--- a/flatpak/flatpak_ci_initiative.yml
+++ b/flatpak/flatpak_ci_initiative.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]