]>
Commit | Line | Data |
---|---|---|
34f76fdd VY |
1 | #!/bin/sh |
2 | ||
3 | # $Id: version.c.SH 24870 2008-01-10 16:51:01Z androsyn $ | |
4 | ||
5 | spitshell=cat | |
fe037171 | 6 | package=librb |
34f76fdd VY |
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 | ||
34f76fdd VY |
20 | $spitshell >version.c <<!SUB!THIS! |
21 | /* | |
fe037171 | 22 | * librb: a library used by charybdis and other things |
34f76fdd VY |
23 | * src/version.c |
24 | * | |
25 | * Copyright (C) 1990 Chelsea Ashley Dyerman | |
26 | * Copyright (C) 2008 ircd-ratbox development team | |
27 | * | |
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) | |
31 | * any later version. | |
32 | * | |
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. | |
37 | * | |
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. | |
41 | */ | |
42 | ||
43 | /* | |
44 | * This file is generated by version.c.SH. Any changes made will go away. | |
45 | */ | |
46 | ||
47 | #include "../include/serno.h" | |
48 | ||
fe037171 | 49 | const char *librb_generation = "$generation"; |
749d697c EM |
50 | const char *librb_serno = SERNO; |
51 | const unsigned long int librb_datecode = DATECODE; | |
34f76fdd | 52 | |
fe037171 | 53 | const char *librb_infotext[] = |
34f76fdd VY |
54 | { |
55 | "$package --", | |
56 | "Based on the original code written by Jarkko Oikarinen", | |
57 | "Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center", | |
58 | "Copyright (c) 1996-2001 Hybrid Development Team", | |
59 | "Copyright (c) 2002-2008 ircd-ratbox Development Team", | |
60 | "", | |
61 | "This program is free software; you can redistribute it and/or", | |
62 | "modify it under the terms of the GNU General Public License as", | |
63 | "published by the Free Software Foundation; either version 2, or", | |
64 | "(at your option) any later version.", | |
65 | "", | |
66 | !SUB!THIS! | |
67 | ||
68 | IFS=' | |
69 | ' | |
70 | for i in `grep -v '^$Id' ../CREDITS |tr -d '"'` ; do | |
71 | echo " \"$i\"," >> version.c | |
72 | done | |
73 | $spitshell >>version.c <<!SUB!THISTOO! | |
74 | "", | |
75 | 0, | |
76 | }; | |
77 | !SUB!THISTOO! |