#!/bin/sh CURRENTNUM=`cat build.h|grep BUILDNUM|cut -d " " -f 3` BUILDNUM=$(( $CURRENTNUM + 1 )) echo "#define BUILDNUM" $BUILDNUM > build.h