#!/bin/sh

PATH=/bin:/usr/bin

v=`/bin/cat version.c|sed -n -e '/return/s/^.*\.\([0-9]*\)[^0-9]*$/\1/p'`
x=`/bin/expr $v + 1`

cp version.c /tmp/version
sed -n -e '/return/s/^\(.*\.\)'$v'\([^0-9]*\)$/\1'$x'\2/' -e p /tmp/version > version.c
rm -f /tmp/version
