]> jfr.im git - irc/rqf/shadowircd.git/blob - libratbox/src/version.c.SH
Only count throttle entries that cause rejection in /stats t.
[irc/rqf/shadowircd.git] / libratbox / src / version.c.SH
1 #!/bin/sh
2
3 # $Id: version.c.SH 24870 2008-01-10 16:51:01Z androsyn $
4
5 spitshell=cat
6 package=libratbox
7
8 echo "Extracting $package/src/version.c..."
9
10 if test -r version.c.last
11 then
12 generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c.last`
13 if test ! "$generation" ; then generation=0; fi
14 else
15 generation=0
16 fi
17
18 generation=`expr $generation + 1`
19
20 uname=`uname -a`
21
22 creation=`date | \
23 awk '{if (NF == 6) \
24 { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
25 else \
26 { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
27
28 $spitshell >version.c <<!SUB!THIS!
29 /*
30 * libratbox: a library used by ircd-ratbox and other things
31 * src/version.c
32 *
33 * Copyright (C) 1990 Chelsea Ashley Dyerman
34 * Copyright (C) 2008 ircd-ratbox development team
35 *
36 * This program is free software; you can redistribute it and/or modify
37 * it under the terms of the GNU General Public License as published by
38 * the Free Software Foundation; either version 2, or (at your option)
39 * any later version.
40 *
41 * This program is distributed in the hope that it will be useful,
42 * but WITHOUT ANY WARRANTY; without even the implied warranty of
43 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44 * GNU General Public License for more details.
45 *
46 * You should have received a copy of the GNU General Public License
47 * along with this program; if not, write to the Free Software
48 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
49 */
50
51 /*
52 * This file is generated by version.c.SH. Any changes made will go away.
53 */
54
55 #include "../include/serno.h"
56
57 const char *libratbox_generation = "$generation";
58 const char *libratbox_platform = "$uname";
59 const char *libratbox_serno = SERIALNUM;
60 const char *libratbox_creation = "$creation";
61
62 const char *libratbox_infotext[] =
63 {
64 "$package --",
65 "Based on the original code written by Jarkko Oikarinen",
66 "Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center",
67 "Copyright (c) 1996-2001 Hybrid Development Team",
68 "Copyright (c) 2002-2008 ircd-ratbox Development Team",
69 "",
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.",
74 "",
75 !SUB!THIS!
76
77 IFS='
78 '
79 for i in `grep -v '^$Id' ../CREDITS |tr -d '"'` ; do
80 echo " \"$i\"," >> version.c
81 done
82 $spitshell >>version.c <<!SUB!THISTOO!
83 "",
84 0,
85 };
86 !SUB!THISTOO!