3 # $Id: version.c.SH 1852 2007-11-30 23:50:04Z klmitch $
5 echo "Extracting ircd/version.c ..."
11 generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c`
12 if test ! "$generation" ; then generation=0; fi
17 generation=`expr $generation + 1`
21 { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
23 { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
26 svn_revision=`svn info | grep Revision | grep -o -E '[0-9]+'`
27 if test "x$svn_revision" = "x" ; then
28 svn_revision=`git log -n 1 --pretty="format:%h"`
29 if test "x$svn_revision" = "x" ; then
32 git_lastcommit=$svn_revision
33 git_commitcount=`git rev-list --all | wc -l | sed "s/[ \t]//g"`
34 svn_revision="git-$git_commitcount-$git_lastcommit"
39 /bin/cat >version.c <<!SUB!THIS!
41 * IRC - Internet Relay Chat, ircd/version.c
42 * Copyright (C) 1990 Chelsea Ashley Dyerman
44 * This program is free software; you can redistribute it and/or modify
45 * it under the terms of the GNU General Public License as published by
46 * the Free Software Foundation; either version 1, or (at your option)
49 * This program is distributed in the hope that it will be useful,
50 * but WITHOUT ANY WARRANTY; without even the implied warranty of
51 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52 * GNU General Public License for more details.
54 * You should have received a copy of the GNU General Public License
55 * along with this program; if not, write to the Free Software
56 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
60 * This file is generated by version.c.SH. Any changes made will go away.
64 #include "patchlevel.h"
66 const char *generation = "$generation";
67 const char *creation = "$creation";
68 const char *version = BASE_VERSION RELEASE PATCHLEVEL PATCHSET;
69 const char *svn_srev = "$svn_revision";
71 const char *infotext[] = {
73 "This program is free software; see LICENSE in the distribution",
75 "Based on the original code written by Jarkko Oikarinen, version 2.6:",
76 "Wiz Jarkko Oikarinen <jto@tolsun.oulu.fi>",
78 "The main developer of version u2.9 and u2.10 was:",
79 "Run Carlo Wood <carlo@runaway.xs4all.nl>",
81 "The head developer of the u2.10 source tree was:",
82 "Bleep Thomas Helvey <tomh@inxpress.net>",
84 "The current maintainors of the u2.10 source tree are:",
85 "Isomer Perry Lorier <perry@coders.net>",
86 "Kev Kevin Mitchell <klmitch@mit.edu>",
88 "Contributors to this release:",
89 "Kev, Isomer, Gte, Ghostwolf, Bleep",
90 "Debugging and support:",
91 "SeKs, Maniac-, HeKTik, OmniDynmc, Liandrin, Dianora",
92 "Special thanks to Angel and Buff for believing in us and putting"
93 "up with frantic late night phone calls"
95 "Thanks goes to all other people who contributed to any version.",
96 "A full listing of all coders can be found in doc/Authors in the",