annotated_annals/justfile
2026-05-16 08:32:40 -04:00

13 lines
434 B
Makefile

finish message:
jj commit -m "{{message}}"
jj bookmark set -r @- latest
jj git push
create book chapter v1 v2:
#!/usr/bin/env bash
set -euxo pipefail
mkdir -p '{{book}}'
passage='{{book}}/{{chapter}}:{{v1}}-{{v2}}'
cd content/bible_journal
sed -e '/\$/{s/\$1/{{chapter}}/; s/\$2/{{v1}}/; s/\$3/{{v2}}/;}' -e "3s/{}/$(date +%Y-%m-%d)/" _template.txt > "${passage}.md"
$EDITOR + "${passage}.md"