root/pkgcore-checks/build_api_docs.sh @ ferringb%2540gmail.com-20080318002434-x5tqwj9jxcsmh5hu

Revision ferringb%2540gmail.com-20080318002434-x5tqwj9jxcsmh5hu, 0.5 kB (checked in by Brian Harring <ferringb@…>, 8 months ago)

add script to generate api docs via epydoc

  • Property executable set to True
Line 
1#!/bin/bash -x
2if [ -z "$2" ] || [ "$#" != 2 ]; then
3    echo "need two args- [ html | pdf ], and the directory location to write the results to"
4    exit 1
5fi
6
7if [ "$1" != "html" ] && [ "$1" != "pdf" ]; then
8    echo "first arg must be either html, or pdf; $1 isn't valid."
9    exit 2
10fi
11
12export SNAKEOIL_DEMANDLOAD_PROTECTION=n
13epydoc --${1} --no-frames --no-frames --graph=all -n pkgcore_checks -u \
14    http://pkgcore.org/trac/pkgcore-checks --show-imports --include-log \
15    --inheritance=included --quiet --simple-term -o "$2" pkgcore_checks
Note: See TracBrowser for help on using the browser.