From 51137d30805a3e9355a201365b4cb82de97bae11 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 26 Apr 2024 12:51:41 +0200 Subject: lesson-make: also detect \pgap and \psolution commands --- scripts/lesson-make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/lesson-make') diff --git a/scripts/lesson-make b/scripts/lesson-make index 11d8230d..8581b3d6 100755 --- a/scripts/lesson-make +++ b/scripts/lesson-make @@ -29,7 +29,7 @@ if [[ -z "${targets[*]}" ]]; then if [[ "${source}" != *solution*.tex ]] \ && [[ "${source}" != *"test_lehrer.tex" ]] \ && [[ "${source}" != *"test_loesung.tex" ]] \ - && grep -qe '\\iflehrer\|lehrerversion\|\\gap\|\\solution' "${source}"; then + && grep -qe '\\iflehrer\|lehrerversion\|\\[p]\?gap\|\\[p]\?solution' "${source}"; then declare -a sus_targets=( "${new_targets[@]}" ) for sus_target in "${sus_targets[@]}"; do dir=$(dirname "${sus_target}") -- cgit v1.2.3