Commit a31f1901 authored by Andreas Böttger's avatar Andreas Böttger 😬
Browse files

Update .gitlab-ci.yml

parent bcade3cf
Pipeline #33341 failed with stages
in 42 seconds
......@@ -109,15 +109,13 @@ build_pages:
script:
- |
(
echo $SHELL
# Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren
file_list=$(grep -rlP '\.\.\/abb\/' ./_raw/book)
while read line; do
grep -rlP '\.\.\/abb\/' ./_raw/book | while read -r line; do
# NUR vier Sprachen werden berücksichtigt: de, en, fa, ar
export lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')"
echo "--- $line"
perl -i -pe 's!(\().*?(abb)!$1/static/reader/$ENV{"lang"}/$2!gm' $line
done <<<$file_list
done
)
- |
(
......@@ -137,8 +135,7 @@ build_pages:
- |
(
# Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren
file_list=$(grep -rlP '\.\.\/abb\/' ./_raw/study-book || true)
while read line; do
grep -rlP '\.\.\/abb\/' ./_raw/study-book | while read -r line; do
# NUR vier Sprachen werden berücksichtigt: de, en, fa, ar
export lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')"
perl -i -pe 's!(\().*?(abb)!$1/static/studyreader/$ENV{"lang"}/$2!gm' $line
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment