about summary refs log tree commit diff
path: root/build.sh
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-08-19 20:12:14 +0200
committerPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-08-19 20:12:14 +0200
commit2cad7c27aa2c756e2fc2b9a21d52c04b2fb95db1 (patch)
treeaa1eb45c7b03f7e6ff766de1e77330d7ea9a7e47 /build.sh
parente185fcdc7c9a2bc9fdc7372158063b2ca9cba6b3 (diff)
downloadsuplement-sprawnosci-2cad7c27aa2c756e2fc2b9a21d52c04b2fb95db1.tar.gz
suplement-sprawnosci-2cad7c27aa2c756e2fc2b9a21d52c04b2fb95db1.zip
Typst init
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..a2fec98
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if command -v nix-shell; then
+    nix-shell -p typst --run "TYPST_FONT_PATHS=fonts typst compile suplement.typ"
+else
+    TYPST_FONT_PATHS=fonts typst compile suplement.typ
+fi
+
+cp suplement.pdf html/suplement.pdf
+find krazki -iname '*.png' -o -iname '*.svg' | zip -@ html/krazki.zip
\ No newline at end of file