3
# $Id: version.c.SH 3342 2007-04-01 22:10:05Z jilles $
8
echo "Extracting $package/src/version.c..."
10
if test -r version.c.last
12
generation=`sed -n 's/^char \*generation = \"\(.*\)\";/\1/p' < version.c.last`
13
if test ! "$generation" ; then generation=0; fi
18
generation=`expr $generation + 1`
22
creation=`LC_ALL=C date | \
24
{ print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
26
{ print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
28
$spitshell >version.c <<!SUB!THIS!
30
* IRC - Internet Relay Chat, src/version.c
31
* Copyright (C) 1990 Chelsea Ashley Dyerman
33
* This program is free software; you can redistribute it and/or modify
34
* it under the terms of the GNU General Public License as published by
35
* the Free Software Foundation; either version 1, or (at your option)
38
* This program is distributed in the hope that it will be useful,
39
* but WITHOUT ANY WARRANTY; without even the implied warranty of
40
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41
* GNU General Public License for more details.
43
* You should have received a copy of the GNU General Public License
44
* along with this program; if not, write to the Free Software
45
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
49
* This file is generated by version.c.SH. Any changes made will go away.
52
#include "patchlevel.h"
55
const char *generation = "$generation";
56
const char *creation = "$creation";
57
const char *platform = "$uname";
58
const char *ircd_version = PATCHLEVEL;
59
const char *serno = SERNO;
61
const char *infotext[] =
64
"Based on the original code written by Jarkko Oikarinen",
65
"Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center",
66
"Copyright (c) 1996-2001 Hybrid Development Team",
67
"Copyright (c) 2002-2009 ircd-ratbox Development Team",
68
"Copyright (c) 2005-2010 charybdis development team",
70
"This program is free software; you can redistribute it and/or",
71
"modify it under the terms of the GNU General Public License as",
72
"published by the Free Software Foundation; either version 2, or",
73
"(at your option) any later version.",
79
for i in `grep -v '^$Id' ../CREDITS |tr -d '"'` ; do
80
echo " \"$i\"," >> version.c
82
$spitshell >>version.c <<!SUB!THISTOO!