#!/bin/bash #api-slave.sh BUILDDIR="sugar-jhbuild" DOCDIR="apidocs" # bash check if directory exists if [ -d $BUILDDIR ]; then pushd $BUILDDIR git-pull popd else git-clone git://git.sugarlabs.org/sugar-jhbuild/mainline.git $BUILDDIR fi pushd $BUILDDIR ./sugar-jhbuild --no-interact popd epydoc $BUILDDIR/install/lib/python2.5/site-packages/sugar \ --verbose \ --html \ --docformat="restructuredtext" \ --show-private \ --show-sourcecode \ --include-log \ --name="Sugar learning platform" \ --css="white" \ --url="http://api.sugarlabs.org" \ --navlink="Sugar Learning Platfrom" \ --graph="all" \ --dotpath="/usr/bin/dot" \ --fail-on-error \ --output=$DOCDIR