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

Add first Italian page! Thanks yhouse. And add link in all other needed pages
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 29 23:59:54 2011 +0200 (2011-04-29)
parents 53477b830578
children 7cef1e1e57fb
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/activity/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"