website view libs/get-feeds.sh @ rev 822

Fix SCN feed
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 21 14:52:35 2011 +0200 (2011-04-21)
parents 111573c244f6
children 18f95b25fc17
line source
1 #!/bin/sh
2 #
3 # Get latest commits and feeds to display on the website main page.
4 # On Tank, this script is executed by cron each hour.
5 #
7 URL="http://hg.slitaz.org/wok"
8 PKGS="/home/slitaz/cooking/packages"
9 CACHE="/var/cache/slitaz/website"
10 OUTPUT="$CACHE/latest.html"
12 # Feeds URL http://scn.slitaz.org/activity/feed/
13 SCN_FEED='http://scn.slitaz.org/groups/devel/feed/'
14 BLOG_FEED='http://scn.slitaz.org/category/news/feed/'
15 WOK_FEED='http://hg.slitaz.org/wok/rss-log'
17 # Clean cache
18 mkdir -p $CACHE && cd $CACHE
19 rm -f *.xml
21 # Cache all feeds to save bandwidth (updated by cron)
22 echo -n "Getting latest rss feeds... "
23 wget -O scn.xml $SCN_FEED 2>/dev/null
24 wget -O wok.xml $WOK_FEED 2>/dev/null
25 wget -O blog.xml $BLOG_FEED 2>/dev/null
26 echo "Done"