mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
gen-doc.bash now also generates for ipa_server, ipa_webui
This commit is contained in:
parent
3082a5379a
commit
0606226b14
30
gen-doc.bash
30
gen-doc.bash
@ -2,11 +2,10 @@
|
|||||||
|
|
||||||
# Hackish script to generate documentation using epydoc
|
# Hackish script to generate documentation using epydoc
|
||||||
|
|
||||||
mod="ipalib"
|
sources="ipalib ipa_server ipa_webui"
|
||||||
d="./$mod-doc"
|
out="./freeipa2-dev-doc"
|
||||||
f="$d.tar.bz2"
|
|
||||||
|
|
||||||
init="./$mod/__init__.py"
|
init="./ipalib/__init__.py"
|
||||||
echo "Looking for $init"
|
echo "Looking for $init"
|
||||||
if [[ ! -f $init ]]
|
if [[ ! -f $init ]]
|
||||||
then
|
then
|
||||||
@ -16,19 +15,14 @@ fi
|
|||||||
echo "You appear to be in the project directory"
|
echo "You appear to be in the project directory"
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
if [[ -d $d ]]
|
if [[ -d $out ]]
|
||||||
then
|
then
|
||||||
echo "Removing old $d directory"
|
echo "Removing old $out directory"
|
||||||
rm -r $d
|
rm -r $out
|
||||||
fi
|
fi
|
||||||
echo "Creating documentation in $d"
|
echo "Creating documentation in $out"
|
||||||
epydoc -v --output=$d --docformat=restructuredtext --html --no-frames $mod
|
epydoc -v --parse-only --html --no-frames \
|
||||||
|
--name=FreeIPA2 \
|
||||||
# Tarball
|
--docformat=restructuredtext \
|
||||||
if [[ -f $f ]]
|
--output=$out \
|
||||||
then
|
$sources
|
||||||
echo "Removing old $f file"
|
|
||||||
rm $f
|
|
||||||
fi
|
|
||||||
echo "Creating tarball $f"
|
|
||||||
tar --create --bzip2 --file=$f $d
|
|
||||||
|
Loading…
Reference in New Issue
Block a user