WUT_Computer_Science/Programming/ZPOB/run.sh
Krzysztof kuhy Rudnicki 6479773e41 Make ZPOB build: its essay was handed in without a bibliography
`./run.sh run Programming/ZPOB` exited 12. A clean-room rebuild (the previous
failure was reading a cached .aux) shows the real error is bibtex, not LaTeX:

    I found no \citation commands---while reading file esej.aux
    I found no \bibstyle command---while reading file esej.aux

esej.tex ends with \bibliography{references} but never cites anything and
never sets a \bibliographystyle. latexmk therefore runs bibtex, bibtex exits
2, and latexmk reports 12 -- after pdflatex has already written a correct
esej.pdf.

Adding \bibliographystyle would make a References section appear that is not
in the deliverable: the submitted esej.pdf (LuaTeX, 2023-12-12, 2 pages) has
no bibliography either, so bibtex never succeeded for the author. The fix
belongs in the harness, so course_lib grows --no-bibtex and ZPOB's stub says
in full why it passes it.

Verified: `rm -rf esej/build && ./run.sh run Programming/ZPOB` exits 0 and
writes esej/build/esej.pdf.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172dj34FDpao6wsix8ZuCzE
2026-08-28 19:18:11 +02:00

18 lines
735 B
Bash
Executable File

#!/bin/bash
#
# Programming/ZPOB -- see ../../run.sh for the probe contract.
set -euo pipefail
# shellcheck source-path=SCRIPTDIR
# shellcheck source=../../scripts/course_lib.sh
. "$(dirname "$(readlink -f "$0")")/../../scripts/course_lib.sh"
# esej.tex ends with \bibliography{references} but contains no \cite and no
# \bibliographystyle, so bibtex aborts and latexmk reports 12 -- after having
# already written a correct esej.pdf. That is how the essay was handed in:
# the submitted esej.pdf (LuaTeX, 2023-12-12) has no bibliography either.
# Adding \bibliographystyle would print a References section that was never
# part of the deliverable, so the build skips bibtex instead.
course_main --kind tex --no-bibtex \
-- "$@"