root/pkgcore/build_api_docs.sh @ ferringb%2540gmail.com-20080318003311-tanhue4r1g4xaj3n

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

add api generation script

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