Makefile now hopefully updates clqr.tar.gz
[clqr.git] / fetch-news.sh
blob7a355bccd262495c03539953a9651eff6c3d3b68
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=10&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