introductionToProgramming/build.nu
Daniel Bulant 6dbde43c1c
fix build
2025-10-07 17:30:47 +02:00

17 lines
No EOL
405 B
Text

ls | where type == "dir" | sort-by name -n | get name | where $it != "common" and $it != "pages" |
each { |folder|
cd $folder
if not ("common" | path exists) {
ln -s ../common ./common
}
if ("doc.typ" | path exists) {
typst compile doc.typ
}
if ($env.CI? | is-empty) {
let zip = ("../" + $folder + ".zip")
rm -f $zip
7z a $zip *
}
}
typst compile main.typ pages/main.pdf