Updated the script to:
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 11 Sep 2008 21:30:08 +0000
changeset 130 63248d9db484
parent 129 d9543d181c37
child 131 3db97cf7f2c7
Updated the script to: * Include a comment describing what it does * Use variables for anything non-standard * Use the --parse-only flag of epydoc * Exclude all 'django' modules through --exclude= * Run on '../app' by default, no more arguments needed * Clean up the output directory before running
scripts/build_epydocs.sh
--- a/scripts/build_epydocs.sh	Thu Sep 11 20:50:58 2008 +0000
+++ b/scripts/build_epydocs.sh	Thu Sep 11 21:30:08 2008 +0000
@@ -1,10 +1,27 @@
 #!/bin/bash
+# Generates epydoc for $target to $outdir, while ignoring $exclude
+# WARNING: The contents of $outdir are -deleted- before the running epydoc
+# This way there are no 'stale files' when the script finishes.
+
+ outdir="../../wiki/html/epydoc"
+ target="../app ../tests"
+exclude="django"
+
+echo "Cleaning out $outdir..."
+rm -f $outdir/*
+echo "Done."
+echo
 
 echo "Running epydoc..."
-echo $1
+echo "$target -> $outdir"
+echo "================="
 
 epydoc --html -v --show-private --inheritance=included --graph=all \
-  -o ../../wiki/html/epydoc $1
+  --parse-only --exclude=$exclude -o $outdir $target
 
+echo "================="
 echo "Done."
+echo
 
+echo "Goodbye."
+