You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
838 B

echo "<rss version=\"2.0\"><channel><title>It's Pro Toad and Superb Owl</title>" > feed.xml
echo "<link></link><description>It's Pro Toad and Superb Owl!</description><atom:link rel=\"self\" type=\"application/rss+xml\" href=\"\"/><generator>/bin/sh</generator>" >> feed.xml
for f in *.md; do
if [ $f == "" ]; then
echo "<item>
<pubDate>$(git log --follow --format=%ad --date default $f | tail -1)</pubDate>
<description><![CDATA[" >> feed.xml
pandoc $f >> feed.xml
echo "]]></description>
</item>" >> feed.xml
echo '</channel></rss>' >> feed.xml