File indexing completed on 2024-04-28 09:40:06
0001 #!/bin/bash 0002 # Generate API documentation from Python sources with the Epydoc tool. 0003 0004 exit_usage () 0005 { 0006 cmd=`basename $0` 0007 echo "\ 0008 Usage: 0009 $cmd PYPKGDIR HTMLOUTDIR" 0010 exit 100 0011 } 0012 0013 pypkgdir=$1 0014 test -n "$pypkgdir" || exit_usage 0015 htmldir=$2 0016 test -n "$pypkgdir" || exit_usage 0017 0018 epydoc=${EPYDOC_EXECUTABLE:-epydoc} 0019 if test -z "`which $epydoc`"; then 0020 echo "Epydoc (http://epydoc.sf.net) not found." 0021 exit 1 0022 fi 0023 0024 rm -rf $htmldir && mkdir -p $htmldir 0025 find $pypkgdir -iname \*.pyc | xargs -r rm 0026 epydoc $pypkgdir/pology/ \ 0027 -o $htmldir -v \ 0028 --no-sourcecode --no-frames --no-private \ 0029 --exclude=external --exclude=internal 0030