diff options
| author | ianb <devnull@localhost> | 2005-04-22 05:13:32 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-04-22 05:13:32 +0000 |
| commit | 834fa8272e9a23b13e7decab6a7c9b734cbbc3c8 (patch) | |
| tree | dc5dccc123d08bca3d841c343457eef1ff083ec4 /docs | |
| parent | f1a7e8ed094b75062980eaf932f3f378bcfd6014 (diff) | |
| download | paste-834fa8272e9a23b13e7decab6a7c9b734cbbc3c8.tar.gz | |
Added script to build the reST files
Diffstat (limited to 'docs')
| -rwxr-xr-x | docs/rebuild | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/rebuild b/docs/rebuild new file mode 100755 index 0000000..b8bef92 --- /dev/null +++ b/docs/rebuild @@ -0,0 +1,22 @@ +#!/bin/sh + +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." + ../paste/test/doctest_webapp.py "$NAME.txt" +done |
