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:git-%h"`
29 if test "x$svn_revision" = "x" ; then
35 /bin/cat >version.c <<!SUB!THIS!
37 * IRC - Internet Relay Chat, ircd/version.c
38 * Copyright (C) 1990 Chelsea Ashley Dyerman
40 * This program is free software; you can redistribute it and/or modify
41 * it under the terms of the GNU General Public License as published by
42 * the Free Software Foundation; either version 1, or (at your option)
45 * This program is distributed in the hope that it will be useful,
46 * but WITHOUT ANY WARRANTY; without even the implied warranty of
47 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48 * GNU General Public License for more details.
50 * You should have received a copy of the GNU General Public License
51 * along with this program; if not, write to the Free Software
52 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
56 * This file is generated by version.c.SH. Any changes made will go away.
60 #include "patchlevel.h"
62 const char *generation = "$generation";
63 const char *creation = "$creation";
64 const char *version = BASE_VERSION RELEASE PATCHLEVEL PATCHSET;
65 const char *svn_srev = "$svn_revision";
67 const char *infotext[] = {
69 "This program is free software; see LICENSE in the distribution",
71 "Based on the original code written by Jarkko Oikarinen, version 2.6:",
72 "Wiz Jarkko Oikarinen <jto@tolsun.oulu.fi>",
74 "The main developer of version u2.9 and u2.10 was:",
75 "Run Carlo Wood <carlo@runaway.xs4all.nl>",
77 "The head developer of the u2.10 source tree was:",
78 "Bleep Thomas Helvey <tomh@inxpress.net>",
80 "The current maintainors of the u2.10 source tree are:",
81 "Isomer Perry Lorier <perry@coders.net>",
82 "Kev Kevin Mitchell <klmitch@mit.edu>",
84 "Contributors to this release:",
85 "Kev, Isomer, Gte, Ghostwolf, Bleep",
86 "Debugging and support:",
87 "SeKs, Maniac-, HeKTik, OmniDynmc, Liandrin, Dianora",
88 "Special thanks to Angel and Buff for believing in us and putting"
89 "up with frantic late night phone calls"
91 "Thanks goes to all other people who contributed to any version.",
92 "A full listing of all coders can be found in doc/Authors in the",