diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-07 13:57:44 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-07 13:57:44 -0600 |
commit | 0606226b1478a0abf7ff20d53cd47ea1efa43b5e (patch) | |
tree | 21bc44b06df993c906f02850783a6c4deab9969a | |
parent | 3082a5379ac5b5e949e79e4c473a013546ce7b6e (diff) | |
download | freeipa.git-0606226b1478a0abf7ff20d53cd47ea1efa43b5e.tar.gz freeipa.git-0606226b1478a0abf7ff20d53cd47ea1efa43b5e.tar.xz freeipa.git-0606226b1478a0abf7ff20d53cd47ea1efa43b5e.zip |
gen-doc.bash now also generates for ipa_server, ipa_webui
-rwxr-xr-x | gen-doc.bash | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/gen-doc.bash b/gen-doc.bash index ba77547c..fad74d37 100755 --- a/gen-doc.bash +++ b/gen-doc.bash @@ -2,11 +2,10 @@ # Hackish script to generate documentation using epydoc -mod="ipalib" -d="./$mod-doc" -f="$d.tar.bz2" +sources="ipalib ipa_server ipa_webui" +out="./freeipa2-dev-doc" -init="./$mod/__init__.py" +init="./ipalib/__init__.py" echo "Looking for $init" if [[ ! -f $init ]] then @@ -16,19 +15,14 @@ fi echo "You appear to be in the project directory" # Documentation -if [[ -d $d ]] +if [[ -d $out ]] then - echo "Removing old $d directory" - rm -r $d + echo "Removing old $out directory" + rm -r $out fi -echo "Creating documentation in $d" -epydoc -v --output=$d --docformat=restructuredtext --html --no-frames $mod - -# Tarball -if [[ -f $f ]] -then - echo "Removing old $f file" - rm $f -fi -echo "Creating tarball $f" -tar --create --bzip2 --file=$f $d +echo "Creating documentation in $out" +epydoc -v --parse-only --html --no-frames \ + --name=FreeIPA2 \ + --docformat=restructuredtext \ + --output=$out \ + $sources |