From 9cab50e9406150b4b4111490cbfd55a11e423257 Mon Sep 17 00:00:00 2001 From: dozens Date: Sun, 29 Aug 2021 14:59:57 -0600 Subject: [PATCH] feat: remove make, add just --- Makefile | 2 -- justfile | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) delete mode 100644 Makefile create mode 100644 justfile diff --git a/Makefile b/Makefile deleted file mode 100644 index c0ffdc0..0000000 --- a/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -default: rss.sh - ./bin/rss.sh diff --git a/justfile b/justfile new file mode 100644 index 0000000..59e48f8 --- /dev/null +++ b/justfile @@ -0,0 +1,20 @@ +# list available commands and exit +default: + @just --list --unsorted + +# build rss feed +rss: + @./bin/rss.sh + +# watch toad.md for changes +watch: + @ls bin/toad.md | entr -c retro bin/toad.md src/00001.txt +alias dev := watch + +# build all comics +build: + #!/usr/bin/env sh + for f in $(ls src/*.txt); do + base=`basename ${f}` + retro bin/toad.md ${f} > "${base/txt/md}" + done