some structure
This commit is contained in:
18
compile.sh
Executable file
18
compile.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
OUT=pdfs
|
||||
mkdir -p "$OUT"
|
||||
|
||||
echo "==> main.typ"
|
||||
typst compile --root . main.typ "$OUT/main.pdf"
|
||||
|
||||
for f in problems/problem*.typ; do
|
||||
name="$(basename "$f" .typ)"
|
||||
echo "==> $f"
|
||||
typst compile --root . "$f" "$OUT/$name.pdf"
|
||||
done
|
||||
|
||||
echo "Готово: $OUT/"
|
||||
Reference in New Issue
Block a user