!/bin/sh

gawk -f bb2gem.gawk < "${1}.bb" > "${1}.gmi"

printf '\ngardenapple - %s\n\n=> / Home' "$(date -I)" >> "${1}.gmi"

grep '\[' < "${1}.gmi"

amfora "file://$(realpath "${1}.gmi")"