From 70fb53e87a2f7b8425dfbf0a499ba8fea5db7517 Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 30 Dec 2024 15:12:39 +0100 Subject: [PATCH] added a justfile with the command to build the specification --- .gitignore | 2 ++ justfile | 5 +++++ specification/specification.typ | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 justfile diff --git a/.gitignore b/.gitignore index 8011ed1..ad7db22 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ target/ # So we do not commit the compiled specifications for every small change *.pdf +# A folder for the releases +releases diff --git a/justfile b/justfile new file mode 100644 index 0000000..dd672a6 --- /dev/null +++ b/justfile @@ -0,0 +1,5 @@ +release_spec semver: + -mkdir {{justfile_dir()}}/releases + typst compile specification/specification.typ {{justfile_dir()}}/releases/specification_{{semver}}.pdf --input semver={{semver}} + + diff --git a/specification/specification.typ b/specification/specification.typ index 9645673..cf7d3b8 100644 --- a/specification/specification.typ +++ b/specification/specification.typ @@ -1,5 +1,5 @@ #import "@preview/colorful-boxes:1.4.0":slanted-colorbox -#let version= "0.1.0" +#let version=sys.inputs.at(default:"??.??.??","semver") #let title= "SVC16: A Simple Virtual Computer" #set text(size: 8pt) #set page(