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

Update .gitlab-ci.yml

parent 7d571a06
Pipeline #33371 failed with stages
in 25 seconds
...@@ -108,19 +108,17 @@ build_pages: ...@@ -108,19 +108,17 @@ build_pages:
- ./templates/studyreader - ./templates/studyreader
script: script:
- | - |
( # Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren
# Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren set -x
set -x grep -rlP '\.\.\/abb\/' ./_raw/study-book || true) | while read -r line; do
grep -rlP '\.\.\/abb\/' ./_raw/study-book || true) | while read -r line; do # NUR vier Sprachen werden berücksichtigt: de, en, fa, ar
# NUR vier Sprachen werden berücksichtigt: de, en, fa, ar if [ -n "$line" ]; then
if [ -n "$line" ]; then lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')";
lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')"; export lang
export lang echo "Processing $line"
echo "Processing $line" perl -i -pe 's!(\().*?(abb)!$1/static/studyreader/$ENV{"lang"}/$2!gm' "$line"
perl -i -pe 's!(\().*?(abb)!$1/static/studyreader/$ENV{"lang"}/$2!gm' "$line" fi
fi done
done
)
- | - |
( (
set -x set -x
...@@ -147,19 +145,17 @@ build_pages: ...@@ -147,19 +145,17 @@ build_pages:
- rm -rf ./templates/studyreader - rm -rf ./templates/studyreader
- mv ./_raw/study-book/_book ./templates/studyreader - mv ./_raw/study-book/_book ./templates/studyreader
- | - |
( # Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren
# Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren set -x
set -x grep -rlP '\.\.\/abb\/' ./_raw/book || true) | while read -r line; do
grep -rlP '\.\.\/abb\/' ./_raw/book || true) | while read -r line; do # NUR vier Sprachen werden berücksichtigt: de, en, fa, ar
# NUR vier Sprachen werden berücksichtigt: de, en, fa, ar if [ -n "$line" ]; then
if [ -n "$line" ]; then lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')";
lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')"; export lang
export lang echo "Processing $line"
echo "Processing $line" perl -i -pe 's!(\().*?(abb)!$1/static/reader/$ENV{"lang"}/$2!gm' "$line"
perl -i -pe 's!(\().*?(abb)!$1/static/reader/$ENV{"lang"}/$2!gm' "$line" fi
fi done
done
)
- | - |
( (
set -x set -x
......
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