aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-10-14 14:14:02 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-10-14 14:14:02 +0200
commit93c8c9e88a0beb372678fdc24587d88e508cd272 (patch)
tree88cf16a2083b48e45d0882cd119f5edabdea4ad5 /scripts
parent38db1878a23d80006b142d09f3fc397c4c10a035 (diff)
downloadunterricht-93c8c9e88a0beb372678fdc24587d88e508cd272.tar.gz
unterricht-93c8c9e88a0beb372678fdc24587d88e508cd272.zip
do not create lehrer_test_lehrer targets
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lesson-make3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lesson-make b/scripts/lesson-make
index d3afcc2d..615427ec 100755
--- a/scripts/lesson-make
+++ b/scripts/lesson-make
@@ -26,7 +26,8 @@ if [[ -z "${targets[*]}" ]]; then
;;
esac
- if grep -qe 'iflehrer\|lehrerversion\|gap\|solution' "${source}"; then
+ if [[ "${source}" != *"test_lehrer.tex" ]] \
+ && 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}")