1 |
#!/bin/sh |
2 |
# |
3 |
# Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
4 |
# Copyright © 2005-2006 Atheme Development Group |
5 |
# Rights to this code are documented in doc/pod/license.pod. |
6 |
# |
7 |
# This file generates version.C. |
8 |
# Stolen from ircd-ratbox. |
9 |
# |
10 |
# $Id: version.sh,v 1.1 2007-07-19 08:24:59 pippijn Exp $ |
11 |
# |
12 |
|
13 |
spitshell=cat |
14 |
package=atheme |
15 |
|
16 |
echo "Extracting $package/src/version.C..." |
17 |
|
18 |
if test -r version.C.last |
19 |
then |
20 |
generation=`sed -n 's/^char const \*generation = \"\(.*\)\";/\1/p' < version.C.last` |
21 |
if test ! "$generation" ; then generation=0; fi |
22 |
else |
23 |
generation=0 |
24 |
fi |
25 |
|
26 |
generation=`expr $generation + 1` |
27 |
|
28 |
uname=`uname` |
29 |
|
30 |
osinfo=`uname -a`; |
31 |
|
32 |
creation=`date | \ |
33 |
awk '{if (NF == 6) \ |
34 |
{ print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ |
35 |
else \ |
36 |
{ print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` |
37 |
|
38 |
buildid=`echo "\$Revision: 1.1 $" | \ |
39 |
awk '{ print $2 }'`; |
40 |
|
41 |
$spitshell >version.C <<!SUB!THIS! |
42 |
/* |
43 |
* Copyright © 2007 The libservices team |
44 |
* Copyright © 2005-2007 Atheme Development Group |
45 |
* Rights to this code are documented in doc/pod/license.pod. |
46 |
* |
47 |
* This file contains version information. |
48 |
* Autogenerated by version.sh. |
49 |
*/ |
50 |
|
51 |
char const *generation = "$generation"; |
52 |
char const *creation = "$creation"; |
53 |
char const *platform = "$uname"; |
54 |
char const *version = "$1"; |
55 |
char const *osinfo = "$osinfo"; |
56 |
|
57 |
char const *infotext[] = |
58 |
{ |
59 |
"Atheme IRC Services --", |
60 |
"Copyright © 2005-2007 Atheme Development Group", |
61 |
" ", |
62 |
"All rights reserved.", |
63 |
" ", |
64 |
"Redistribution and use in source and binary forms, with or without modification,", |
65 |
"are permitted provided that the following conditions are met:", |
66 |
" ", |
67 |
" Redistributions of source code must retain the above copyright notice,", |
68 |
" this list of conditions and the following disclaimer.", |
69 |
" ", |
70 |
" Redistributions in binary form must reproduce the above copyright notice,", |
71 |
" this list of conditions and the following disclaimer in the documentation", |
72 |
" and/or other materials provided with the distribution.", |
73 |
" ", |
74 |
" Neither the name of the author nor the names of its contributors may be", |
75 |
" used to endorse or promote products derived from this software without", |
76 |
" specific prior written permission.", |
77 |
" ", |
78 |
"THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND", |
79 |
"ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED", |
80 |
"WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE", |
81 |
"DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR", |
82 |
"ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES", |
83 |
"(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;", |
84 |
"LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON", |
85 |
"ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT", |
86 |
"(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS", |
87 |
"SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", |
88 |
" ", |
89 |
"Currently Atheme's core group consists of the following developers,", |
90 |
"in nick-alphabetical order:", |
91 |
" gxti, Michael Tharp <gxti@partiallystapled.com>", |
92 |
" jilles, Jilles Tjoelker <jilles@stack.nl>", |
93 |
" nenolod, William Pitcock <nenolod@nenolod.net>", |
94 |
" pippijn, Pippijn van Steenhoven <pippijn@one09.net>", |
95 |
" ", |
96 |
"The following people have contributed blood, sweat and tears to", |
97 |
"this Atheme release:", |
98 |
" alambert, Alex Lambert <alambert@quickfire.org>", |
99 |
" beu, Elfyn McBratney <elfyn.mcbratney@gmail.com>", |
100 |
" Dianora, Diane Bruce <db@db.net>", |
101 |
" kog, Greg Feigenson <kog@epiphanic.org>", |
102 |
" kuja, Jeff Katz <jeff@katzonline.net>", |
103 |
" lu_zero, Luca Barbato <lu_zero@gentoo.org>", |
104 |
" pfish, Patrick Fish <pofish@gmail.com>", |
105 |
" terminal, Theo Julienne <admin@ozweb.nu>", |
106 |
" Trystan, Trystan Scott Lee <trystan@nomadirc.net>", |
107 |
" w00t, Robin Burchell <viroteck@viroteck.net>", |
108 |
" zparta, Jens Holmqvist <zparta@hispan.se>", |
109 |
" ", |
110 |
"Visit our website at http://www.atheme.net", |
111 |
0, |
112 |
}; |
113 |
!SUB!THIS! |