Skip to content

Instantly share code, notes, and snippets.

@thomasbilk
Created July 31, 2014 18:39
Show Gist options
  • Save thomasbilk/5365c9730ec2119870c0 to your computer and use it in GitHub Desktop.
Save thomasbilk/5365c9730ec2119870c0 to your computer and use it in GitHub Desktop.
Bash Script for generating RSS files for all Fossil repositories in a folder
#!/usr/bin/env bash
for fos in `ls /var/repos/*.fossil`; do
rss=`echo $fos | sed 's/\/var\/repos\/\(.*\)\.fossil/\1/'`;
/usr/local/bin/fossil rss -R $fos --url https://repos.com/$rss > /var/public/rss/$rss.rss;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment