2021-04-17 17:31:20 +00:00
|
|
|
#bin/sh
|
|
|
|
echo "<rss version=\"2.0\"><channel><title>It's Pro Toad and Superb Owl</title>" > feed.xml
|
|
|
|
|
|
|
|
for f in $(find . -type f -iname '*.md' ! -name 'README.md' | sed 's/\.\///'); do
|
2021-04-17 18:00:17 +00:00
|
|
|
echo "<item>" >> feed.xml
|
|
|
|
echo "<title>$f</title>" >> feed.xml
|
|
|
|
echo "<link>https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/$f</link>" >> feed.xml
|
|
|
|
echo "<pubDate>$(stat -f "%m%t%Sm %N" $f | cut -f2 | cut -f1-4 -d ' ')</pubDate>" >> feed.xml
|
|
|
|
echo "<description><![CDATA[" >> feed.xml
|
|
|
|
echo $(pandoc -t html $f) >> feed.xml
|
|
|
|
echo "]]></description>" >> feed.xml
|
|
|
|
echo "</item>" >> feed.xml
|
2021-04-17 17:31:20 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
echo '</channel></rss>' >> feed.xml
|
|
|
|
|