capsule/generate-web-feed.sh

10 lines
279 B
Bash
Raw Normal View History

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