You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
638 B

  1. #!/bin/bash
  2. # Hackish script to generate documentation using epydoc
  3. sources="ipalib ipaserver ipatests"
  4. out="./freeipa2-dev-doc"
  5. init="./ipalib/__init__.py"
  6. echo "Looking for $init"
  7. if [[ ! -f $init ]]
  8. then
  9. echo "Error: You do not appear to be in the project directory"
  10. exit 1
  11. fi
  12. echo "You appear to be in the project directory"
  13. # Documentation
  14. if [[ -d $out ]]
  15. then
  16. echo "Removing old $out directory"
  17. rm -r $out
  18. fi
  19. echo "Creating documentation in $out"
  20. epydoc -v --html --no-frames --include-log \
  21. --name="FreeIPA v2 developer documentation" \
  22. --docformat=restructuredtext \
  23. --output=$out \
  24. $sources