aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-10-02 08:26:17 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-10-02 08:26:17 +0200
commit710fa1a0fe12e2099a67836142dd7dd14c82fe2f (patch)
tree8ab317bdb9139db8fa2b7c7776219fb685483bed
parenta623507bbb3709b8cd0f5bdeef1978530764b954 (diff)
downloadunterricht-710fa1a0fe12e2099a67836142dd7dd14c82fe2f.tar.gz
unterricht-710fa1a0fe12e2099a67836142dd7dd14c82fe2f.zip
lesson-dist: do not include hidden or copyrighted files
-rwxr-xr-xscripts/lesson-dist3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/lesson-dist b/scripts/lesson-dist
index 2fd98ea3..159db664 100755
--- a/scripts/lesson-dist
+++ b/scripts/lesson-dist
@@ -1,7 +1,7 @@
#!/bin/bash
# Create a distributable archive for my lesson material
archive="$(basename "$PWD").zip"
-readarray -t files < <(find -L . -mindepth 1 -not -path './.*' -printf '%p\n')
+readarray -t files < <(find -L . -mindepth 1 -not -path '*/.*' -not -path '*/Copyrighted*' -printf '%p\n')
zip "${archive}" "${files[@]}"
# TODO: replace hardcoded base dir
@@ -37,7 +37,6 @@ add_custom_latex_to_archive "${basedir}"/latex/common.tex \
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
add_custom_latex_to_archive "${basedir}"/latex/test.cls