#!/bin/sh
for proto in http https gemini gopher; do
  case $proto in gopher) prefix=/0;; *) prefix=;; esac
  name=$proto.xml
  awk -f entry.awk \
    -v base=$proto://celehner.com$prefix/2021/07/oldcomp/ \
    -v name=$name \
    -v author_name=cel \
    -v author_email=cel@celehner.com \
    -v title=cel-oldcomp-2021-07-$proto \
    day?.txt >$name
done