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