meals/justfile

31 lines
527 B
Plaintext

# show all recipes
default:
just --list --unsorted
remtmpl := '''
"rem {{date}} at 08:00 tag breakfast msg {{breakfast}}%
rem {{date}} at 12:00 tag lunch msg {{lunch}}%
rem {{date}} at 18:00 tag dinner msg {{dinner}}%
"'''
# build menu.rem from menu.rec
rem:
#!/bin/sh
exec > dist/menu.rem
recsel db/menu.rec | recfmt {{remtmpl}}
# build menu pdf from menu.rec
pdf:
sh bin/pdf.sh
# build menus!
menu: rem pdf
# shopping list
shopping:
sh bin/ingredients.sh
# shell archive
shar:
shar `git ls-files`