#!/usr/bin/env bash set -euo pipefail REPORT_DIR="$(cd "$(dirname "$0")/.." && pwd)" ROOT="$(cd "$REPORT_DIR/.." && pwd)" SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" BODY_PDF="$REPORT_DIR/.Пояснительная_записка_ПытковРЕ.body.pdf" cd "$REPORT_DIR" python3 scripts/gen_listings.py python3 scripts/gen_test_tables.py python3 scripts/check_images.py typst compile --root "$ROOT" "Пояснительная_записка_ПытковРЕ.typ" "$BODY_PDF" # shellcheck source=merge_front_matter.sh source "$SCRIPT_DIR/merge_front_matter.sh" merge_front_into_pz "$REPORT_DIR" "$BODY_PDF" rm -f "$BODY_PDF"