view myrss/myrss_update.sh @ 22:a7ad7a5c899e

update myrss/FEEDS; add note to thule_fit_kits/index.php about 400XT foot pack compatibility
author paulo@thepaulopc
date Wed, 19 Jan 2011 23:20:30 -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