]>
Commit | Line | Data |
---|---|---|
34f76fdd VY |
1 | #!/bin/sh |
2 | ||
34f76fdd VY |
3 | |
4 | spitshell=cat | |
fe037171 | 5 | package=librb |
34f76fdd VY |
6 | |
7 | echo "Extracting $package/src/version.c..." | |
8 | ||
9 | if test -r version.c.last | |
10 | then | |
11 | generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c.last` | |
12 | if test ! "$generation" ; then generation=0; fi | |
13 | else | |
14 | generation=0 | |
15 | fi | |
16 | ||
17 | generation=`expr $generation + 1` | |
18 | ||
34f76fdd VY |
19 | $spitshell >version.c <<!SUB!THIS! |
20 | /* | |
a6f63a82 | 21 | * librb: a library used by solanum and other things |
34f76fdd | 22 | * src/version.c |
c056dba2 | 23 | * |
34f76fdd VY |
24 | * Copyright (C) 1990 Chelsea Ashley Dyerman |
25 | * Copyright (C) 2008 ircd-ratbox development team | |
26 | * | |
27 | * This program is free software; you can redistribute it and/or modify | |
28 | * it under the terms of the GNU General Public License as published by | |
29 | * the Free Software Foundation; either version 2, or (at your option) | |
30 | * any later version. | |
31 | * | |
32 | * This program is distributed in the hope that it will be useful, | |
33 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
34 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
35 | * GNU General Public License for more details. | |
36 | * | |
37 | * You should have received a copy of the GNU General Public License | |
38 | * along with this program; if not, write to the Free Software | |
39 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
40 | */ | |
41 | ||
42 | /* | |
43 | * This file is generated by version.c.SH. Any changes made will go away. | |
44 | */ | |
45 | ||
46 | #include "../include/serno.h" | |
47 | ||
fe037171 | 48 | const char *librb_generation = "$generation"; |
749d697c EM |
49 | const char *librb_serno = SERNO; |
50 | const unsigned long int librb_datecode = DATECODE; | |
34f76fdd | 51 | |
fe037171 | 52 | const char *librb_infotext[] = |
34f76fdd VY |
53 | { |
54 | "$package --", | |
55 | "Based on the original code written by Jarkko Oikarinen", | |
56 | "Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center", | |
c056dba2 | 57 | "Copyright (c) 1996-2001 Hybrid Development Team", |
34f76fdd VY |
58 | "Copyright (c) 2002-2008 ircd-ratbox Development Team", |
59 | "", | |
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.", | |
64 | "", | |
65 | !SUB!THIS! | |
66 | ||
67 | IFS=' | |
68 | ' | |
69 | for i in `grep -v '^$Id' ../CREDITS |tr -d '"'` ; do | |
70 | echo " \"$i\"," >> version.c | |
71 | done | |
72 | $spitshell >>version.c <<!SUB!THISTOO! | |
73 | "", | |
74 | 0, | |
75 | }; | |
76 | !SUB!THISTOO! |