From 710fa1a0fe12e2099a67836142dd7dd14c82fe2f Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 2 Oct 2026 08:26:17 +0200 Subject: lesson-dist: do not include hidden or copyrighted files --- scripts/lesson-dist | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/lesson-dist') 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 -- cgit v1.2.3