From 228e2a3e77d66b85608d362e05675145acd02a66 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 16 Dec 2023 13:35:54 +0100 Subject: improve lehrerversion detection Do not build a lehrerversion of solution files and math against the latex leading '\' for gap and solution macros. --- scripts/lesson-make | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/lesson-make b/scripts/lesson-make index 64d8232d..11d8230d 100755 --- a/scripts/lesson-make +++ b/scripts/lesson-make @@ -26,9 +26,10 @@ if [[ -z "${targets[*]}" ]]; then ;; esac - if [[ "${source}" != *"test_lehrer.tex" ]] \ + if [[ "${source}" != *solution*.tex ]] \ + && [[ "${source}" != *"test_lehrer.tex" ]] \ && [[ "${source}" != *"test_loesung.tex" ]] \ - && grep -qe 'iflehrer\|lehrerversion\|gap\|solution' "${source}"; then + && grep -qe '\\iflehrer\|lehrerversion\|\\gap\|\\solution' "${source}"; then declare -a sus_targets=( "${new_targets[@]}" ) for sus_target in "${sus_targets[@]}"; do dir=$(dirname "${sus_target}") -- cgit v1.2.3