scripts/build_epydocs.sh
changeset 130 63248d9db484
parent 10 56109601507d
equal deleted inserted replaced
129:d9543d181c37 130:63248d9db484
     1 #!/bin/bash
     1 #!/bin/bash
       
     2 # Generates epydoc for $target to $outdir, while ignoring $exclude
       
     3 # WARNING: The contents of $outdir are -deleted- before the running epydoc
       
     4 # This way there are no 'stale files' when the script finishes.
       
     5 
       
     6  outdir="../../wiki/html/epydoc"
       
     7  target="../app ../tests"
       
     8 exclude="django"
       
     9 
       
    10 echo "Cleaning out $outdir..."
       
    11 rm -f $outdir/*
       
    12 echo "Done."
       
    13 echo
     2 
    14 
     3 echo "Running epydoc..."
    15 echo "Running epydoc..."
     4 echo $1
    16 echo "$target -> $outdir"
       
    17 echo "================="
     5 
    18 
     6 epydoc --html -v --show-private --inheritance=included --graph=all \
    19 epydoc --html -v --show-private --inheritance=included --graph=all \
     7   -o ../../wiki/html/epydoc $1
    20   --parse-only --exclude=$exclude -o $outdir $target
     8 
    21 
       
    22 echo "================="
     9 echo "Done."
    23 echo "Done."
       
    24 echo
    10 
    25 
       
    26 echo "Goodbye."
       
    27