c0b52a905e90439afd2863218413130a5a561576
[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(".%d.(%s)", NF - 3, $(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 "sys.h"
66 #include "h.h"
67 #include "patchlevel.h"
68 #include "version.h"
69
70 const char *generation = "$generation";
71 const char *creation = "$creation";
72 const char *version = BASE_VERSION PATCH1 "$cvsversion" PATCH2 PATCH3 PATCH4 PATCH5 PATCH6\
73         PATCH7 PATCH8 PATCH9 PATCH10 PATCH11 PATCH12 PATCH13 PATCH14 PATCH15\
74         PATCH16 PATCH17 PATCH18 PATCH19 PATCH20 PATCH21 PATCH22 PATCH23 PATCH24\
75         PATCH25 PATCH26 PATCH27 PATCH28 PATCH29 PATCH30 PATCH31 PATCH32;
76
77 const char *infotext[] = {
78     "IRC --",
79     "Based on the original code written by Jarkko Oikarinen, version 2.6:",
80     "Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center",
81     "",
82     "Wiz          Jarkko Oikarinen         <jto@tolsun.oulu.fi>",
83     "",
84     "This program is free software; you can redistribute it and/or",
85     "modify it under the terms of the GNU General Public License as",
86     "published by the Free Software Foundation; either version 2, or",
87     "(at your option) any later version.",
88     "",
89     "The UnderNet code is based upon version 2.8.10.",
90     "The main developers of version 2.7 and 2.8 are:",
91     "",
92     "Avalon       Darren Reed              <avalon@coombs.anu.edu.au>",
93     "msa          Markku Savela            <msa@tel4.tel.vtt.fi>",
94     "Wumpus       Greg Lindahl             <lindahl@pbm.com>",
95     "",
96     "The main developer of version u2.9 and u2.10 is:",
97     "",
98     "Run          Carlo Wood               <carlo@runaway.xs4all.nl>",
99     "",
100     "Thanks goes to all other people who contributed to any version.",
101     "A full listing of all coders can be found in doc/Authors in the",
102     "source.  Contributers to version u2.10 can be found on",
103     "http://coder-com.undernet.org/posters.html",
104     "Thanks also to those who provided me with accounts; the kind sys",
105     "admins who let me and others continue to develop IRC.",
106     "",
107     "[$sumsserv] [$sumchan] [$sumsbsd] [$sumsuser]",
108     "[$sumhash] [$sumsmisc] [$sumircd]",
109     0,
110 };
111 !SUB!THIS!