💾 Archived View for appl.garden › play › bb2gem captured on 2024-06-20 at 12:46:53. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-06-16)
-=-=-=-=-=-=-
if [ -z "$1" ]; then
echo "Usage: ./bb2gem ARTICLE[.bb]"
exit 1
fi
name="${1%%.*}"
gawk -f bb2gem.gawk < "${name}.bb" > "${name}.gmi"
printf '\n\ngardenapple - %s\n\n=> ./ Linux and low-spec-ish gaming' "$(date -I)" >> "${name}.gmi"
echo "Possibly un-handled [TAG]s:"
grep '\[' < "${name}.gmi"
~/code/go/amfora/amfora "file://$(realpath "${name}.gmi")" || amfora "file://$(realpath "${name}.gmi")"
rm -i -- "${name}.bb"