3 # $Id: version.c.SH 24870 2008-01-10 16:51:01Z androsyn $
8 echo "Extracting $package/src/version.c..."
10 if test -r version.c.last
12 generation
=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c.last`
13 if test ! "$generation" ; then generation
=0; fi
18 generation
=`expr $generation + 1`
20 $spitshell >version.c
<<!SUB
!THIS
!
22 * libratbox
: a library used by ircd
-ratbox and other things
25 * Copyright
(C
) 1990 Chelsea Ashley Dyerman
26 * Copyright
(C
) 2008 ircd
-ratbox development team
28 * This program is free software
; you can redistribute it and
/or modify
29 * it under the terms of the GNU General Public License as published by
30 * the Free Software Foundation
; either version
2, or
(at your option
)
33 * This program is distributed
in the hope that it will be useful
,
34 * but WITHOUT ANY WARRANTY
; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 * GNU General Public License
for more details.
38 * You should have received a copy of the GNU General Public License
39 * along with this program
; if not
, write to the Free Software
40 * Foundation
, Inc.
, 675 Mass Ave
, Cambridge
, MA
02139, USA.
44 * This
file is generated by version.c.SH. Any changes made will go away.
47 #include "../include/serno.h"
49 const char
*libratbox_generation
= "$generation";
50 const char
*libratbox_serno
= SERIALNUM
;
52 const char
*libratbox_infotext
[] =
55 "Based on the original code written by Jarkko Oikarinen",
56 "Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center",
57 "Copyright (c) 1996-2001 Hybrid Development Team",
58 "Copyright (c) 2002-2008 ircd-ratbox Development Team",
60 "This program is free software; you can redistribute it and/or",
61 "modify it under the terms of the GNU General Public License as",
62 "published by the Free Software Foundation; either version 2, or",
63 "(at your option) any later version.",
69 for i
in `grep -v '^$Id' ../CREDITS |tr -d '"'` ; do
70 echo " \"$i\"," >> version.c
72 $spitshell >>version.c
<<!SUB
!THISTOO
!