#!/bin/sh

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

TARGET=$HOME/kochanski.org/gpk/code/speechresearch/voicing
SCRIPTS=$(ls *.py | sed -e '/probe_feat/d' -e '/setup/d')
MODS=lib
rm -rf $TARGET
mkdir -p $TARGET
test -d $TARGET &&
  epydoc --config epydoc.config --html -o $TARGET --show-imports	\
	--exclude '.*setup.*'	\
	-v	\
	$SCRIPTS $MODS

test -d doc || mkdir doc
epydoc -v --config epydoc.config --pdf -o doc --show-imports \
	--exclude '.*setup.*'	\
	$MODS $SCRIPTS

chmod -R a+r $TARGET
find $TARGET -type d -exec chmod a+x {} \;
