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