aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-04-26 12:51:41 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2024-04-26 12:51:41 +0200
commit51137d30805a3e9355a201365b4cb82de97bae11 (patch)
treec9b4d6ffa964b0f34ff178aecaf85a53c6d05767
parent0114d72d105a4c0eea15e02a4295f22dea998659 (diff)
downloadunterricht-51137d30805a3e9355a201365b4cb82de97bae11.tar.gz
unterricht-51137d30805a3e9355a201365b4cb82de97bae11.zip
lesson-make: also detect \pgap and \psolution commands
-rwxr-xr-xscripts/lesson-make2
1 files changed, 1 insertions, 1 deletions
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}")