Files
Wallenc/Report/testing-export/scripts/build.sh

31 lines
931 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# Три PDF для загрузки по заданию (п. 1, 3, 4). ТЗ (п. 2) — отдельно у студента.
set -euo pipefail
REPORT="$(cd "$(dirname "$0")/../.." && pwd)"
EXPORT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$REPORT"
python3 scripts/gen_test_listings.py
stems=(
export_01_testing_section
export_03_requirements
export_04_unit_tests
)
pdfs=(
"КТбо4-9_ПытковРЕ_1_Раздел_ПЗ_ТестированиеО.pdf"
"КТбо4-9_ПытковРЕ_3_Требования_к_приложению.pdf"
"КТбо4-9_ПытковРЕ_4_Код_и_наборы_тестов.pdf"
)
for i in "${!stems[@]}"; do
stem="${stems[$i]}"
pdf="${pdfs[$i]}"
echo "Compiling $stem.typ → $pdf ..."
typst compile --root .. "$EXPORT/$stem.typ" "$EXPORT/$pdf"
done
echo "Done (ТЗ — п. 2 — загружается отдельно):"
printf ' %s\n' "${pdfs[@]}"