5 echo "Extracting ircd/version.c ..."
11 generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c`
12 if test ! "$generation" ; then generation=0; fi
17 generation=`expr $generation + 1`
21 { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
23 { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
25 /bin/cat >version.c <<!SUB!THIS!
27 * IRC - Internet Relay Chat, ircd/version.c
28 * Copyright (C) 1990 Chelsea Ashley Dyerman
30 * This program is free software; you can redistribute it and/or modify
31 * it under the terms of the GNU General Public License as published by
32 * the Free Software Foundation; either version 1, or (at your option)
35 * This program is distributed in the hope that it will be useful,
36 * but WITHOUT ANY WARRANTY; without even the implied warranty of
37 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 * GNU General Public License for more details.
40 * You should have received a copy of the GNU General Public License
41 * along with this program; if not, write to the Free Software
42 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
46 * This file is generated by version.c.SH. Any changes made will go away.
50 #include "patchlevel.h"
51 #include "patchlist.h"
53 const char *generation = "$generation";
54 const char *creation = "$creation";
55 const char *version = BASE_VERSION RELEASE PATCHLEVEL PATCHLIST;
57 const char *infotext[] = {
59 "This program is free software; see LICENSE in the distribution",
61 "Based on the original code written by Jarkko Oikarinen, version 2.6:",
62 "Wiz Jarkko Oikarinen <jto@tolsun.oulu.fi>",
64 "The main developer of version u2.9 and u2.10 was:",
65 "Run Carlo Wood <carlo@runaway.xs4all.nl>",
67 "The head developer of the u2.10 source tree was:",
68 "Bleep Thomas Helvey <tomh@inxpress.net>",
70 "The current maintainors of the u2.10 source tree are:",
71 "Isomer Perry Lorier <perry@coders.net>",
72 "Kev Kevin Mitchell <klmitch@mit.edu>",
74 "Contributors to this release:",
75 "Kev, Isomer, Gte, Ghostwolf, Bleep",
76 "Debugging and support:",
77 "SeKs, Maniac-, HeKTik, OmniDynmc, Liandrin, Dianora",
78 "Special thanks to Angel and Buff for believing in us and putting"
79 "up with frantic late night phone calls"
81 "Thanks goes to all other people who contributed to any version.",
82 "A full listing of all coders can be found in doc/Authors in the",
88 for file in ${srcdir}/ircd/*.[cly] ${srcdir}/ircd/version.c.SH ; do
90 if [ $base != version.c -a $base != y.tab.c -a $base != lex.yy.c -a \
91 $base != chattr.tab.c ] ; then
92 vers=`grep '$Id' $file | sed -e 's/.*\$Id\://' -e 's/\$[^$]*//' | \
93 awk '{ print $2; exit; }'`
94 echo " \"[" `./umkpasswd -5 $file` " $vers ]\"," >> version.c
98 echo " \"\"," >> version.c
99 echo " \"Headers:\"," >> version.c
101 for file in ${srcdir}/include/*.h ; do
102 vers=`grep '$Id' $file | sed -e 's/.*\$Id\://' -e 's/\$[^$]*//' | \
103 awk '{ print $2; exit; }'`
104 echo " \"[" `./umkpasswd -5 $file` " $vers ]\"," >> version.c
107 /bin/cat >>version.c <<!SUB!THIS!