Files
Wallenc/Report/scripts/build.sh

35 lines
1.0 KiB
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
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPORT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
ROOT="$(cd "$REPORT_DIR/.." && pwd)"
export JAVA_HOME="${JAVA_HOME:-/usr/lib/jvm/java-21-openjdk}"
echo "== gen_listings =="
python3 "$SCRIPT_DIR/gen_listings.py"
echo "== gen_test_tables =="
python3 "$SCRIPT_DIR/gen_test_tables.py"
echo "== render_puml =="
"$SCRIPT_DIR/render_puml.sh"
echo "== check_images =="
python3 "$SCRIPT_DIR/check_images.py"
echo "== check_gost_dashes =="
python3 "$SCRIPT_DIR/check_gost_dashes.py"
echo "== typst compile (тело ПЗ) =="
BODY_PDF="$REPORT_DIR/.Пояснительная_записка_ПытковРЕ.body.pdf"
cd "$REPORT_DIR"
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"
echo "Done: $REPORT_DIRояснительная_записка_ПытковРЕ.pdf"