generate rss feed with burrow rss

This commit is contained in:
James Tomasino 2018-03-31 22:06:35 -04:00
parent 43e903bbb6
commit f49be1126e
1 changed files with 0 additions and 3 deletions

3
burrow
View File

@ -436,9 +436,6 @@ function make_rss {
echo " <link>gopher://${config_gopher_server}/0${config_gopher_root}${config_dir_phlog}/${filename}</link>"
echo " <pubdate>$(date -R --date="${date}")</pubdate>"
echo " <description><![CDATA[<pre>"
# TODO: add test for gophermap or not
# if gophermap, remove formatting from "i" types
# TODO: reconstruct normal URLs from type 0 and 1 links
if grep -q "gophermap$" <<< $filename
then
awk -F"\t" '/^[2-9h\+GIThs].*\t/ {print $0; next} /^[0-1].*\t/ { l=substr($1, 2, length($1)); t=substr($1,1,1); print l "\n gopher://" $3 "/" t $2; next } {sub(/^i/, "", $1);print $1}' "$f"