mkdir -p html
svn -q add html 2> /dev/null
if [ -n "$1" ];
then rm -rf html/*
fi
for i in *.py; do
stem="${i%.*}"
if [ $i -nt html/$stem.html ]; then
echo html/$stem.html
source-highlight -n -i $stem.py -o html/$stem.html
svn -q add html/$stem.html 2> /dev/null
svn -q propset svn:mime-type text/html html/$stem.html
fi
done
if [ "$1" == "commit" ];
then svn commit -m stuff
fi