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