#! /bin/sh
#

if [ $# -ne 3 ]
then
	echo "This script will automagically generate a change log from"
        echo "a previous release. Specify a previous release number, please."
        echo ""
	echo "usage: $0 <major-number> <minor-number> <pico-number>"
	exit 1
fi

echo "Warning, this script requires perl.  Run from project root."

cd lib/Xm
cvs log -rrelease_$1_$2_$3: > log_since_$1_$2_$3
../../scripts/parselog  log_since_$1_$2_$3 > ../../ChangeLog
rm log_since_$1_$2_$3
