Add build_all.sh for gitlab-ci.yml

This commit is contained in:
Cech 2017-06-27 22:29:52 +02:00
parent a63cf8f019
commit 6b4bf35e84
2 changed files with 11 additions and 2 deletions

View File

@ -6,7 +6,7 @@ image: blang/latex
build:
script:
- latexmk -pdf
- bash build_all.sh
artifacts:
paths:
- "*.pdf"
- "build/*.pdf"

9
build_all.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
mkdir -p output
find ./* -maxdepth 1 -mindepth 1 -type f -name "*.tex" \
-not -name "settings.tex" \
-not -name "SSxx Klausurvorlage.tex" \
-not -name "klausuren-Settings-utf8.tex" \
-print0 | \
xargs -0 -P 4 -I [] bash -c 'cd "$(dirname "[]")"; latexmk -pdf -outdir=../output "$(basename "[]")";'