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