#!/bin/sh
PATH=/usr/ucb:/bin:/usr/bin:/usr/local/bin
if [ ! -r RCS/"$1",v ]; then
	exit 0;
fi

VERSION="`rlog -h "$1" | awk -F: '$1 == "head" {printf("%.2f", $2)}'`"
cat << __EOF__ > version.new
/* Updated automatically --- do not modify */
char version[] = "$VERSION";
__EOF__
echo "GNU m4, version $VERSION"

cmp -s version.h version.new || mv version.new version.h
rm -f  version.new 
