mirror of
https://github.com/jbowdre/capsule.git
synced 2024-11-14 10:22:18 +00:00
10 lines
No EOL
279 B
Bash
Executable file
10 lines
No EOL
279 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-web\.xml/g' $OUTFEED |