File: rebuild

package info (click to toggle)
sqlobject 3.1.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,280 kB
  • ctags: 17,912
  • sloc: python: 16,713; sh: 18; makefile: 13
file content (22 lines) | stat: -rwxr-xr-x 698 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

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

NORMAL="Authors DeveloperGuide FAQ Inheritance
        News News1 News2 News3 News4 News5 Python3
        SQLBuilder SQLObject SelectResults TODO Versioning Views
        community download index links sqlobject-admin"

for NAME in $NORMAL ; do
    if [ -e "docs/$NAME.html" -a ! "docs/$NAME.html" -ot "docs/$NAME.rst" ] ; then
        echo "$NAME is up to date."
        continue
    fi
    echo "Building $NAME."
    rst2html --no-toc-backlinks --stylesheet=default.css --link-stylesheet \
        -- "docs/$NAME.rst" > "docs/$NAME.html"
done