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