#! /bin/sh ## $Id: mkversion 7345 2005-07-02 05:04:05Z eagle $ ## ## Create version.h from INN version information. ## ## Makefile.global contains the INN version number and extra version ## information (if any). This is passed to use by lib/Makefile as our ## first and second arguments. Print a header file suitable for use ## as inn/version.h on stdout. version="$1" extra="$2" string="INN $version" if [ x"$extra" = x"prerelease" ] ; then date=`date +%Y%m%d` extra="$date $extra" fi if [ -n "$extra" ] ; then string="$string ($extra)" fi major=`echo "$version" | cut -d. -f1` minor=`echo "$version" | cut -d. -f2` patch=`echo "$version" | cut -d. -f3` cat <