#! /bin/sh # $Id: version.c.SH 1852 2007-11-30 23:50:04Z klmitch $ echo "Extracting ircd/version.c ..." srcdir=$1 if test -r version.c then generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c` if test ! "$generation" ; then generation=0; fi else generation=0 fi generation=`expr $generation + 1` creation=`date | \ awk '{if (NF == 6) \ { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ else \ { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` svn_revision=`svn info | grep Revision | grep -o -E '[0-9]+'` if test "x$svn_revision" = "x" ; then svn_revision=`git log -n 1 --pretty="format:%h"` if test "x$svn_revision" = "x" ; then svn_revision="0" else git_lastcommit=$svn_revision git_commitcount=`git rev-list --all | wc -l | sed "s/[ \t]//g"` svn_revision="git-$git_commitcount-$git_lastcommit" fi fi /bin/cat >version.c <", "", "The main developer of version u2.9 and u2.10 was:", "Run Carlo Wood ", "", "The head developer of the u2.10 source tree was:", "Bleep Thomas Helvey ", "", "The current maintainors of the u2.10 source tree are:", "Isomer Perry Lorier ", "Kev Kevin Mitchell ", "", "Contributors to this release:", "Kev, Isomer, Gte, Ghostwolf, Bleep", "Debugging and support:", "SeKs, Maniac-, HeKTik, OmniDynmc, Liandrin, Dianora", "Special thanks to Angel and Buff for believing in us and putting" "up with frantic late night phone calls" "", "Thanks goes to all other people who contributed to any version.", "A full listing of all coders can be found in doc/Authors in the", "source.", 0, }; !SUB!THIS!