Restore stats_spy hook that was removed in commit 401f2454671ca233e35b0e6e4f3fa4c43cd...
[seven-1.x.git] / src / version.c.SH
blobfaaa3f20d5026dbcc7210b1bad882b7ae2a5f883
1 #!/bin/sh
3 spitshell=cat
4 package=IRC
6 echo "Extracting $package/src/version.c..."
8 if test -r version.c.last
9 then
10 generation=`sed -n 's/^char \*generation = \"\(.*\)\";/\1/p' < version.c.last`
11 if test ! "$generation" ; then generation=0; fi
12 else
13 generation=0
16 generation=`expr $generation + 1`
18 uname=`uname -a`
20 creation=`date | \
21 awk '{if (NF == 6) \
22 { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
23 else \
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)
34 * any later version.
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"
51 #include "serno.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[] =
61 "$package --",
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",
67 "",
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.",
72 "",
73 !SUB!THIS!
75 IFS='
77 for i in `grep -v '^$Id' ../CREDITS |tr -d '"'` ; do
78 echo " \"$i\"," >> version.c
79 done
80 $spitshell >>version.c <<!SUB!THISTOO!
81 "",
84 !SUB!THISTOO!