Files
TUM-Formelsammlungen/compile-all.bash
alexander 20c65ae855
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 13s
Setup CICD
Ci Fix

Fixed missing quotes

Ci Fix

Ci Fix: Why do i need to do this way?

Ci Fix: Another try

Ci Fix: Fixed "Fun" docker problem

Ci Fix: ARAAAAAAGG

Fuck my life

fasdgrdtgjz5uj6rz65jztu5jzt6uujztnzt56zu7jzt65u

Partial Ci cicd

Change something

Test

mhmm

test

asd

test

?

asd

ßsd

asd

asdasd

asd

asd

ddd

asd

asd

ddasd

asd

asd

asd

asd

asd

asd

dddd

asdd

asddd

asd
2025-12-14 22:25:03 +01:00

32 lines
716 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SRC_DIR="${TYPST_SOURCE_DIR}"
OUT_DIR="${BUILD_DIR}"
if [[ ! -d "$SRC_DIR" ]]; then
echo "Source directory '$SRC_DIR' does not exist."
exit 1
fi
mkdir -p "$OUT_DIR"
# Find all .typ files under $SRC_DIR (excluding hidden dirs)
mapfile -d '' files < <(printf '%s\0' "$SRC_DIR"/*.typ 2>/dev/null)
if [[ ${#files[@]} -eq 0 ]]; then
echo "No .typ files found in '$SRC_DIR'."
exit 0
fi
for f in "${files[@]}"; do
# Trim leading ./ if present
rel="${f#./}"
# Destination path: build/<same-subdirs>/<filename>.pdf
dest_pdf="${OUT_DIR}/$(basename "${rel%.typ}").pdf"
echo "Compiling: $f -> $dest_pdf"
typst compile "$f" "$dest_pdf"
done