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

Update .gitlab-ci.yml

parent a31f1901
Pipeline #33342 failed with stages
in 42 seconds
......@@ -112,9 +112,11 @@ build_pages:
# Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren
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
if [ -n "$line" ]; then
export lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')"
echo "Processing $line"
perl -i -pe 's!(\().*?(abb)!$1/static/reader/$ENV{"lang"}/$2!gm' $line
fi
done
)
- |
......@@ -137,8 +139,11 @@ build_pages:
# Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren
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
if [ -n "$line" ]; then
export lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')"
echo "Processing $line"
perl -i -pe 's!(\().*?(abb)!$1/static/studyreader/$ENV{"lang"}/$2!gm' $line
fi
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