#!/bin/sh d=$(dirname a/$1.pdf) if [ ! -d $d ]; then mkdir -p $d; fi typst ${2:-c} --root $PWD text/$1.typ a/$1.pdf