blob: 8bbcc02e1d9f3e70c190a9a63ec83744f311deae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
here=`pwd`
parent=`dirname $here`
echo "Adding $parent to \$PYTHONPATH"
export PYTHONPATH=$parent:$PYTHONPATH
NORMAL="DeveloperGuidelines Paste servers StyleGuide web/index"
DOCTEST_BUILD="BlogTutorial 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
|