mirror of
https://github.com/jbowdre/capsule.git
synced 2024-11-25 14:22:19 +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 |