#!/bin/sh # $Id: version.c.SH 24870 2008-01-10 16:51:01Z androsyn $ spitshell=cat package=libratbox echo "Extracting $package/src/version.c..." if test -r version.c.last then generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c.last` if test ! "$generation" ; then generation=0; fi else generation=0 fi generation=`expr $generation + 1` $spitshell >version.c <> version.c done $spitshell >>version.c <