summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Cesar Lopes Belem <rclbelem@gmail.com>2009-05-09 02:23:49 +0000
committerRodrigo Cesar Lopes Belem <rclbelem@gmail.com>2009-05-09 02:23:49 +0000
commitc3ccb064ed370e7457f833101aa5d911f6d38ff2 (patch)
tree67c1561d3f1b2460e069785c2c72e5cd989f0ba8
parentadc01cd2466f3fd804ffd156c1f1ebb3ce909227 (diff)
Checking for the documetation dir before python-* doc generation
SVN revision: 40561
-rwxr-xr-xgen-doc-api.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/gen-doc-api.sh b/gen-doc-api.sh
index 830bba2..af6a29b 100755
--- a/gen-doc-api.sh
+++ b/gen-doc-api.sh
@@ -2,6 +2,7 @@
2 2
3pyver=`python -c 'import sys; print "%d.%d" % sys.version_info[0:2]'` 3pyver=`python -c 'import sys; print "%d.%d" % sys.version_info[0:2]'`
4regex=lib\.[a-z0-9]*-[a-z0-9]*-$pyver 4regex=lib\.[a-z0-9]*-[a-z0-9]*-$pyver
5destdir="doc/api/html"
5 6
6for d in `ls build`; do 7for d in `ls build`; do
7 if [[ $d == $regex ]]; then 8 if [[ $d == $regex ]]; then
@@ -11,6 +12,10 @@ done
11 12
12export PYTHONPATH="`pwd`/build/$d" 13export PYTHONPATH="`pwd`/build/$d"
13 14
14epydoc --html -o doc/api/html \ 15if [ -d $destdir ]; then
16 mkdir -p $destdir
17fi
18
19epydoc --html -o $destdir \
15 -n "Python-E_Dbus API" \ 20 -n "Python-E_Dbus API" \
16 e_dbus 21 e_dbus