| Line | |
|---|
| 1 | #!/bin/bash -x |
|---|
| 2 | if [ -z "$2" ] || [ "$#" != 2 ]; then |
|---|
| 3 | echo "need two args- [ html | pdf ], and the directory location to write the results to" |
|---|
| 4 | exit 1 |
|---|
| 5 | fi |
|---|
| 6 | |
|---|
| 7 | if [ "$1" != "html" ] && [ "$1" != "pdf" ]; then |
|---|
| 8 | echo "first arg must be either html, or pdf; $1 isn't valid." |
|---|
| 9 | exit 2 |
|---|
| 10 | fi |
|---|
| 11 | |
|---|
| 12 | export SNAKEOIL_DEMANDLOAD_PROTECTION=n |
|---|
| 13 | epydoc --${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\.*' |
|---|