Adds a .sh helper to conjure the podman builder env
Build Successful The build was successful
Ravenous/Ravenous-LaTeX/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-05-14 17:07:18 +02:00
parent c7c761a2e0
commit d8d9e404ba
1 changed files with 40 additions and 0 deletions

40
ravenous_build.sh Executable file
View File

@ -0,0 +1,40 @@
#!/usr/bin/env bash
#
# ravenous_build.sh
#
# Usage:
# ./ravenous_build.sh # → make -N
# ./ravenous_build.sh foo bar # → make -N -o foo bar
#
# All four preparatory podman steps are executed in any case.
#
set -euo pipefail # safer shell behaviour
# ------------------------------------------------------------------
# 1. Run the preparatory podman commands
# ------------------------------------------------------------------
podman run --rm -it -v "$(pwd)":/workspace \
localhost/ravenous-podman:latest tablegen -e all
podman run --rm -it -v "$(pwd)":/workspace \
localhost/ravenous-podman:latest graphs load
podman run --rm -it -v "$(pwd)":/workspace \
localhost/ravenous-podman:latest graphs gen
podman run --rm -it -v "$(pwd)":/workspace \
localhost/ravenous-podman:latest make -t glossaries Ravenous.tex
# ------------------------------------------------------------------
# 2. Final build step – choose -o or not
# ------------------------------------------------------------------
if [ $# -eq 0 ]; then
# No extra arguments
podman run --rm -it -v "$(pwd)":/workspace \
localhost/ravenous-podman:latest make -N Ravenous.tex
else
# Forward every supplied argument to make via -o
podman run --rm -it -v "$(pwd)":/workspace \
localhost/ravenous-podman:latest make -N Ravenous.tex -o "$@"
fi