capsule/generate-web-feed.sh

10 lines
No EOL
281 B
Bash
Executable file

#!/usr/bin/env bash
set -eu
INFEED="public/gemlog/atom.xml"
OUTFEED="public/gemlog/atom-web.xml"
# read INFILE, replace gemini:// with https:// and write to OUTFILE
sed 's/gemini:\/\//https:\/\//g' $INFEED > $OUTFEED
# fix self url
sed -i 's/atom\.xml/atom-https\.xml/g' $OUTFEED