From 060e37e38e4f51aefb0d1a92f800aa8a6208e4b7 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Wed, 12 Mar 2025 14:14:27 +0100 Subject: [PATCH] switched to justfile --- gallery.bash | 27 --------------------------- justfile | 12 ++++++++++++ typst.toml | 2 +- 3 files changed, 13 insertions(+), 28 deletions(-) delete mode 100644 gallery.bash create mode 100644 justfile diff --git a/gallery.bash b/gallery.bash deleted file mode 100644 index ea50654..0000000 --- a/gallery.bash +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - - -echo -echo "Generating gallery PDFs" - -set -- ./gallery/*.typ -cnt="$#" -i=1 -for f -do - f2="${f/typ/pdf}" - echo "($i/$cnt) $f -> $f2" - typst c --root ./ "$f" "$f2" - i=$((i+1)) -done - -set -- ./gallery/readme/*.typ -cnt="$#" -i=1 -for f -do - f2="${f/typ/png}" - echo "($i/$cnt) $f -> $f2" - typst c --root ./ "$f" "$f2" - i=$((i+1)) -done diff --git a/justfile b/justfile new file mode 100644 index 0000000..de19b92 --- /dev/null +++ b/justfile @@ -0,0 +1,12 @@ +# Local Variables: +# mode: makefile +# End: +gallery_dir := "./gallery" +set shell := ["bash", "-uc"] + +manual: + typst c manual.typ manual.pdf + +gallery: + for f in "{{gallery_dir}}"/*.typ; do typst c --root . "$f" "${f%typ}pdf"; done + for f in "{{gallery_dir}}"/readme/*.typ; do typst c --root . "$f" "${f%typ}png"; done \ No newline at end of file diff --git a/typst.toml b/typst.toml index c5a5dbc..54d8602 100644 --- a/typst.toml +++ b/typst.toml @@ -11,4 +11,4 @@ categories = ["visualization"] license = "Apache-2.0" description = "A package to draw sequence diagrams with CeTZ" keywords = ["sequence", "diagram", "plantuml"] -exclude = [ "gallery", "gallery.bash", "docs" ] +exclude = [ "gallery", "justfile", "docs" ]