aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-01-06 19:51:19 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-06 19:51:19 +0100
commit0894aa72b3f5397264eab33e6f2f5cf8fb2ba05e (patch)
tree6cfef7ba6ce8788797359b34558d3d1772bef780 /scripts
parent0785942dc9161fdc96708ef3cd5bcd2d4d9e3afe (diff)
downloadunterricht-0894aa72b3f5397264eab33e6f2f5cf8fb2ba05e.tar.gz
unterricht-0894aa72b3f5397264eab33e6f2f5cf8fb2ba05e.zip
include logos in distributable zip and document build instructions
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lesson-dist5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lesson-dist b/scripts/lesson-dist
index 52184484..eae821d9 100755
--- a/scripts/lesson-dist
+++ b/scripts/lesson-dist
@@ -33,7 +33,10 @@ add_custom_latex_to_archive "${basedir}"/latex/common.tex \
"${basedir}"/latex/common_options.tex
# Include common images
-add_custom_latex_to_archive "${basedir}"/latex/images/**
+# TODO: only include used images
+readarray -t images < <(find "${basedir}"/latex/images -printf '%p\n')
+add_custom_latex_to_archive "${images[@]}"
+
# Include the needed latex classes
if grep -Pzrq '(?s)documentclass.+test\}' .; then