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

Update .gitlab-ci.yml

parent c6bfaf33
Pipeline #33338 passed with stages
in 1 minute and 18 seconds
......@@ -69,7 +69,7 @@ clone_pages:
- git branch | cat
# Zuerst die PDFs, da im Job `pages` die URLs der Abbildungen geändert werden
build_pdf:
.build_pdf:
image: docker.rz.tu-harburg.de:5000/docker/gitbook:node
stage: pdf
script:
......@@ -110,11 +110,11 @@ build_pages:
- |
(
# Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren
file_list=$(grep -rlP '\.\.\/abb\/' ./_raw/book || true)
file_list=$(grep -rlP '\.\.\/abb\/' ./_raw/book)
while read 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 $lang
echo $line
perl -i -pe 's!(\().*?(abb)!$1/static/reader/$ENV{"lang"}/$2!gm' $line
done <<<$file_list
)
......
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