Mercurial > hg > index.fcgi > www > www-1
view myrss/myrss_update.sh @ 23:6d959c2ed416
index.php: don't display redundant LastMod
author | paulo@twcdns.fastsearch.net |
---|---|
date | Mon, 24 Jan 2011 00:02:19 -0800 |
parents | 3551de5fef13 |
children | f93693980ead |
line source
1 #!/bin/sh
3 TIMESTAMP=$(date '+%FT%T%:z')
4 TIMEOUT=60
6 i=0
7 for URL in $(grep -v '^#' FEEDS)
8 do
9 FN=$((i++)).feedtmp
10 wget -q -T ${TIMEOUT} -U '' -O - ${URL} | xsltproc step1.xsl - | xsltproc step2.xsl - > ${FN} &
11 done
13 wait
15 echo '<HTML>'
16 echo '<HEAD>'
17 echo "<TITLE>${TIMESTAMP}</TITLE>"
18 echo '<LINK REL="stylesheet" TYPE="text/css" HREF="index.css">'
19 echo '</HEAD>'
21 echo '<BODY>'
22 echo "<H1>${TIMESTAMP}</H1>"
24 for j in $(seq 0 ${i})
25 do
26 cat ${j}.feedtmp
27 done
29 echo '</BODY>'
30 echo '</HTML>'
32 rm *.feedtmp