[go: up one dir, main page]

Menu

[47dde2]: / docs / rebuild  Maximize  Restore  History

Download this file

22 lines (18 with data), 630 Bytes

#! /bin/sh

here=`pwd`
parent=`dirname "$here"`
echo "Adding $parent to \$PYTHONPATH"
PYTHONPATH="$parent${PYTHONPATH:+:$PYTHONPATH}"
export PYTHONPATH

NORMAL="Authors DeveloperGuide FAQ Inheritance News
        SQLBuilder SQLObject SelectResults TODO Versioning Views
        community download index links sqlobject-admin"

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 --no-toc-backlinks --stylesheet=default.css --link-stylesheet \
        -- "$NAME.txt" > "$NAME.html"
done