#!/bin/sh here=`pwd` parent=`dirname $here` echo "Adding $parent to \$PYTHONPATH" export PYTHONPATH=$parent:$PYTHONPATH NORMAL="DeveloperGuidelines Paste servers StyleGuide web/index \ what-is-paste testing-applications url-parsing-with-wsgi \ roadmap configuration integration" DOCTEST_BUILD="blog-tutorial TodoTutorial" for NAME in $NORMAL ; do if [ -e "$NAME.html" -a ! "$NAME.html" -ot "$NAME.txt" ] ; then echo "$NAME is up to date." continue fi echo "Building $NAME." rst2html.py "$NAME.txt" > "$NAME.html" done for NAME in $DOCTEST_BUILD ; do if [ -e "$NAME.html" -a ! "$NAME.html" -ot "$NAME.txt" ] ; then echo "$NAME is up to date." continue fi echo "Building $NAME." python2.4 ../paste/tests/doctest_webapp.py "$NAME.txt" done chmod +x web/index.html cp include/reference_header.txt reference.txt echo ":extracted: `date`" >> reference.txt echo >> reference.txt python ../paste/docsupport/extract.py paste >> reference.txt rst2html.py reference.txt > reference.html