2022-08-25 18:15:54 +00:00
|
|
|
#!/bin/sh
|
2021-08-15 02:47:17 +00:00
|
|
|
echo "<rss version=\"2.0\"><channel><title>It's Pro Toad and Superb Owl</title>" > feed.xml
|
2021-12-23 22:18:16 +00:00
|
|
|
echo "<link>https://git.tilde.town/dozens/protoadandsuperbowl</link><description>It's Pro Toad and Superb Owl!</description><atom:link rel=\"self\" type=\"application/rss+xml\" href=\"https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/feed.xml\"/><generator>/bin/sh</generator>" >> feed.xml
|
2021-08-15 02:47:17 +00:00
|
|
|
|
|
|
|
|
2022-08-25 18:15:54 +00:00
|
|
|
for f in *.md; do
|
|
|
|
if [ $f == "README.md" ]; then
|
|
|
|
continue
|
|
|
|
fi
|
2021-08-15 02:47:17 +00:00
|
|
|
echo "<item>
|
|
|
|
<title>$f</title>
|
|
|
|
<link>https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/$f</link>
|
2022-08-25 18:15:54 +00:00
|
|
|
<pubDate>$(git log --follow --format=%ad --date default $f | tail -1)</pubDate>
|
2021-08-15 02:47:17 +00:00
|
|
|
<description><![CDATA[" >> feed.xml
|
|
|
|
pandoc $f >> feed.xml
|
|
|
|
echo "]]></description>
|
|
|
|
</item>" >> feed.xml
|
|
|
|
done
|
|
|
|
|
|
|
|
echo '</channel></rss>' >> feed.xml
|
|
|
|
|