protoadandsuperbowl/rss.sh

10 lines
361 B
Bash
Raw Normal View History

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
echo "<item><title>$f</title><link>https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/$f</link></item>" >> feed.xml
done
echo '</channel></rss>' >> feed.xml