#!/bin/sh
PREFIX=_PREFIX_
pwd=`pwd`

if [ $# -ne 1 ]; then
	echo "Usage $0 cvs-repository"
	exit
fi

if [ -f cvs-logfile ]; then
	cvs-logfile already exists!
	exit
fi

cd $1 && cvs log > ${pwd}/cvs-logfile
cd $pwd
CLASSPATH=${PREFIX}/share/java/jfreecharts.jar java -jar ${PREFIX}/share/java/statcvs.jar cvs-logfile $1
