mirror of
https://github.com/danbulant/introductionToProgramming
synced 2026-05-19 20:38:36 +00:00
17 lines
No EOL
405 B
Text
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 |