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

Main page add Twitter follow button
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 12 15:16:39 2012 +0100 (2012-02-12)
parents 18f95b25fc17
children
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 CACHE="/var/cache/slitaz/website"
9 # Feeds URL http://scn.slitaz.org/activity/feed/
10 SCN_FEED='http://scn.slitaz.org/activity/feed/'
11 BLOG_FEED='http://scn.slitaz.org/category/news/feed/'
12 WOK_FEED='http://hg.slitaz.org/wok/rss-log'
13 FORUM_FEED='http://forum.slitaz.org/rss'
15 # Clean cache
16 mkdir -p $CACHE && cd $CACHE
17 rm -f *.xml
19 # Cache all feeds to save bandwidth (updated by cron)
20 echo -n "Getting latest rss feeds... "
21 wget -O scn.xml $SCN_FEED 2>/dev/null
22 wget -O wok.xml $WOK_FEED 2>/dev/null
23 wget -O blog.xml $BLOG_FEED 2>/dev/null
24 #wget -O forum.xml $FORUM_FEED 2>/dev/null
25 echo "Done"
27 exit 0