website view lib/get-feeds.sh @ rev 1292

Update 'de' pages to last stye
author Christophe Lincoln <pankso@slitaz.org>
date Wed Dec 07 23:52:04 2016 +0100 (2016-12-07)
parents e2a0a816a8c6
children f4015a7fe89d
line source
1 #!/bin/sh
2 #
3 # Get latest commits and feeds to display on the website main page.
4 # On the server, 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'
14 ROLLING_DATE='http://mirror1.slitaz.org/rolling-date.sh'
16 # Clean cache
17 mkdir -p $CACHE && cd $CACHE
18 rm -f *.xml
20 # Cache all feeds to save bandwidth (updated by cron)
21 echo -n "Getting latest rss feeds... "
22 wget -O scn.xml $SCN_FEED 2>/dev/null
23 wget -O wok.xml $WOK_FEED 2>/dev/null
24 wget -O blog.xml $BLOG_FEED 2>/dev/null
25 wget -O forum.xml $FORUM_FEED 2>/dev/null
26 wget -O rolling-date.txt $ROLLING_DATE 2>/dev/null
27 echo "Done"
29 exit 0