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.
|
|
#!/bin/sh# RSS Feed Display Script by Hellf[i]re v0.1## This script is designed for most any RSS Feed. As some feeds may# not be# completely compliant, it may need a bit of tweaking## This script depends on curl.# Gentoo: emerge -av net-misc/curl# Debian: apt-get install curl# Homepage: http://curl.haxx.se/## Usage:# .conkyrc: ${execi [time] /path/to/script/conky-rss.sh}## Applications needed:# bash, cat, grep, sed, curl## Usage Example# ${execi 300 /home/youruser/scripts/conky-rss.sh}
#RSS SetupURI=http://sourceforge.net/export/rss2_keepsake.php?group_id=145591 #URI of RSS FeedFEEDFILE="/tmp/kicad-svn-`date +%y%m%d-%H%M%S`.rss"URLFILE="/tmp/kicad-svn-`date +%y%m%d-%H%M%S`.url"
# Get feed and saveEXEC="/usr/bin/curl -s" #Path to curl`$EXEC $URI &> $FEEDFILE`
# Get commit descriptioncat $FEEDFILE | \grep title | \sed -e 's/[ \t]*//' | \sed -e '/activity/d' | \sed -e '/artifact/d' | \sed -e 's/<title>//' | \sed -e 's/<\!\[CDATA\[//' | \sed -e 's/\]\]>//' | \sed -e 's/<\/title>//'
# Space between descriptions and messagesecho ""
# Get viewvc urls onlycat $FEEDFILE | \grep link | \sed -e '/tracker/d' | \sed -e '/export/d' | \sed -e 's/[ \t]*//' | \sed -e 's/<link>//' | \sed -e 's/<\/link>//' &> $URLFILE
# Get commit messages from urlsexec < $URLFILEwhile read LINEdo curl -s "$LINE" | \ grep vc_log | \ sed -e 's/<td><pre class=\"vc_log\">//' | \ sed -e 's/<\/pre><\/td>//' | \ sed -e '/<style/d'done
rm /tmp/kicad-svn-*
|