fixed ssl.c bug when ssl backend returns IO_BLOCKED but IO engine doesn't get informe...
[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=`git log -n 1 --pretty="format:%h"`
29   if test "x$svn_revision" = "x" ; then
30     svn_revision="0"
31   else
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"
35   fi
36 fi
37
38
39 /bin/cat >version.c <<!SUB!THIS!
40 /*
41  * IRC - Internet Relay Chat, ircd/version.c
42  * Copyright (C) 1990 Chelsea Ashley Dyerman
43  *
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)
47  * any later version.
48  *
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.
53  *
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.
57  */
58
59 /*
60  * This file is generated by version.c.SH. Any changes made will go away.
61  */
62
63 #include "version.h"
64 #include "patchlevel.h"
65
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";
70
71 const char *infotext[] = {
72     "IRC --",
73     "This program is free software; see LICENSE in the distribution",
74     "",
75     "Based on the original code written by Jarkko Oikarinen, version 2.6:",
76     "Wiz          Jarkko Oikarinen         <jto@tolsun.oulu.fi>",
77     "",
78     "The main developer of version u2.9 and u2.10 was:",
79     "Run          Carlo Wood               <carlo@runaway.xs4all.nl>",
80     "",
81     "The head developer of the u2.10 source tree was:",
82     "Bleep        Thomas Helvey            <tomh@inxpress.net>",
83     "",
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>",
87     "",
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"
94     "",
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",
97     "source.",
98     0,
99 };
100 !SUB!THIS!
101