root/snakeoil/build_api_docs.sh @ ferringb%2540gmail.com-20080318002133-64mjqup3czaf54ex

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

add simple script for epydoc invocation

  • 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 snakeoil -u \
14    http://pkgcore.org/trac/snakeoil --show-imports --include-log \
15    --inheritance=included --quiet --simple-term -o "$2" snakeoil
Note: See TracBrowser for help on using the browser.