#!/bin/sh

# Make documentation and place it where it will appear on the web:

TARGET=$HOME/kochanski.org/gpk/code/speechresearch/classifiers

SCRIPTS='l_classifier qd_classifier qdg_classifier g_kmeans'
MODS=$(echo *.py | tr ' ' '\012' | grep -v setup.py)

rm -rf $TARGET
mkdir -p $TARGET
test -d $TARGET &&
  epydoc -v --config epydoc.config --html -o $TARGET --show-imports $MODS $SCRIPTS
test -d doc || mkdir doc
epydoc -v --config epydoc.config --pdf -o doc --show-imports $MODS $SCRIPTS
mv doc/api.pdf .
