#!/bin/bash
# export script for sf.net

mkdir sfn

echo -ne "" >sfn/index.html;
cat index.html|while read i; do
	if echo $i|grep '^<!-- sf-news -->$' >/dev/null; then
		cat sf-news >>sfn/index.html;
	elif echo $i|grep '^<!-- sf-image -->$' >/dev/null; then
		cat sf-image >>sfn/index.html;
	else
		echo $i >>sfn/index.html;
	fi

done

sed -e 's|../../\([^"]*\)|http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/shfs/shfs/\1?rev=HEAD|g' internals.html >sfn/internals.html
cp install.html faq.html ceres.jpg ean.png sfn/

