[release-notes/wip-subpop-tr-lang-css] build: fix translation CSS file names




commit 51157399b6d64d02f5dc1e7f458339f1e27d59d1
Author: Link Dupont <link sub-pop net>
Date:   Tue Sep 21 14:31:27 2021 +0000

    build: fix translation CSS file names
    
    Translations with underscores in their name get their CSS file created
    by yelp-build with the underscore replaced by a hyphen. When installing
    the override CSS file, transform the filename to the correct name.

 build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/build.sh b/build.sh
index a9acbe12..30421944 100644
--- a/build.sh
+++ b/build.sh
@@ -21,7 +21,7 @@ for branch in "${branches[@]}"; do
             fi
             mkdir -p "${OUTDIR}"
             yelp-build html --output "${OUTDIR}" --path ./help/C "./help/${LANG}/"
-            install -m0644 "${CI_PROJECT_DIR}/style.css" "${OUTDIR}/${LANG}.css"
+            install -m0644 "${CI_PROJECT_DIR}/style.css" "${OUTDIR}/${LANG/_/-}.css"
             install -d -m0755 "${OUTDIR}/fonts"
             install -D -m0644 -t "${OUTDIR}/fonts" "${CI_PROJECT_DIR}/fonts/cantarell-bold-latin.woff2"
             install -D -m0644 -t "${OUTDIR}/fonts" "${CI_PROJECT_DIR}/fonts/cantarell-extra-bold-latin.woff2"


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