diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-04-26 12:51:41 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-04-26 12:51:41 +0200 |
| commit | 51137d30805a3e9355a201365b4cb82de97bae11 (patch) | |
| tree | c9b4d6ffa964b0f34ff178aecaf85a53c6d05767 /scripts/lesson-make | |
| parent | 0114d72d105a4c0eea15e02a4295f22dea998659 (diff) | |
| download | unterricht-51137d30805a3e9355a201365b4cb82de97bae11.tar.gz unterricht-51137d30805a3e9355a201365b4cb82de97bae11.zip | |
lesson-make: also detect \pgap and \psolution commands
Diffstat (limited to 'scripts/lesson-make')
| -rwxr-xr-x | scripts/lesson-make | 2 |
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}") |
