tilde marks destructible args; some typos fixed
[clqr.git] / fetch-news.sh
blob0bea2809425bc831f541a884247ec7ed721b4898
1 #!/bin/bash
3 # Fetch news and prune them for inclusion by html/index.php
5 /usr/bin/wget -q -O news-clqr.tmp \
6 'http://developer.berlios.de/export/projnews.php?group_id=9765&limit=7&flat=1&show_summaries=1' \
7 > /dev/null
8 /bin/sed -e "s/ &nbsp; - &nbsp; <a href=\"\/\/developer.berlios.de\/projects\/clqr\/\">Common Lisp Quick Reference<\/a>//g"\
9 -e "s/<a [^>]*>//g" -e "s/<\/a>//g"\
10 -e "s/<b>/<h5>/g" -e "s/<\/b>/<\/h5>/g" \
11 -e "s/<i>/<i>[/g" -e "s/<\/i>/]<\/i>/g" \
12 -e "s/<div .*<\/div>//g" -e "s/<hr [^>]*>/<p>/g"\
13 -e "s/^[ \t\]*//g" -e "s/&nbsp;&nbsp;&nbsp;//g"\
14 news-clqr.tmp > /home/groups/clqr/htdocs/news-clqr.html
15 /bin/rm news-clqr.tmp