… | |
… | |
5 | # Rights to this code are documented in doc/pod/license.pod. |
5 | # Rights to this code are documented in doc/pod/license.pod. |
6 | # |
6 | # |
7 | # This file generates version.C. |
7 | # This file generates version.C. |
8 | # Stolen from ircd-ratbox. |
8 | # Stolen from ircd-ratbox. |
9 | # |
9 | # |
10 | # $Id: version.sh,v 1.2 2007/07/21 01:29:13 pippijn Exp $ |
10 | # $Id: version.sh,v 1.3 2007/08/28 17:08:12 pippijn Exp $ |
11 | # |
11 | # |
12 | |
12 | |
13 | spitshell=cat |
13 | package=ermyth |
14 | package=atheme |
|
|
15 | |
14 | |
16 | echo "Extracting $package/src/version.C..." |
15 | echo "Extracting $package/src/version.C..." |
17 | |
16 | |
18 | if test -r version.C.last |
17 | if test -r version.C.last |
19 | then |
18 | then |
20 | generation=`sed -n 's/^char const \*generation = \"\(.*\)\";/\1/p' < version.C.last` |
19 | generation=`sed -n 's/^char const generation\[\] = \"\(.*\)\";/\1/p' < version.C.last` |
21 | if test ! "$generation" ; then generation=0; fi |
20 | if test ! "$generation" ; then generation=0; fi |
22 | else |
21 | else |
23 | generation=0 |
22 | generation=0 |
24 | fi |
23 | fi |
25 | |
24 | |
… | |
… | |
33 | awk '{if (NF == 6) \ |
32 | awk '{if (NF == 6) \ |
34 | { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ |
33 | { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ |
35 | else \ |
34 | else \ |
36 | { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` |
35 | { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` |
37 | |
36 | |
38 | buildid=`echo "\$Revision: 1.2 $" | \ |
37 | buildid=`echo "\$Revision: 1.3 $" | \ |
39 | awk '{ print $2 }'`; |
38 | awk '{ print $2 }'`; |
40 | |
39 | |
41 | $spitshell >version.C <<!SUB!THIS! |
40 | cat >version.C <<!SUB!THIS! |
42 | /* |
41 | /* |
43 | * Copyright © 2007 The libservices team |
42 | * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
44 | * Copyright © 2005-2007 Atheme Development Group |
43 | * Copyright © 2005-2007 Atheme Development Group |
45 | * Rights to this code are documented in doc/pod/license.pod. |
44 | * Rights to this code are documented in doc/pod/gplicense.pod. |
46 | * |
45 | * |
47 | * This file contains version information. |
46 | * This file contains version information. |
48 | * Autogenerated by version.sh. |
47 | * Autogenerated by version.sh. |
49 | */ |
48 | */ |
50 | |
49 | |
51 | char const *generation = "$generation"; |
50 | // declaring them extern or the compiler might optimise them out entirely |
52 | char const *creation = "$creation"; |
51 | extern char const generation[]; |
53 | char const *platform = "$uname"; |
52 | extern char const creation[]; |
54 | char const *version = "$1"; |
53 | extern char const platform[]; |
55 | char const *osinfo = "$osinfo"; |
54 | extern char const version[]; |
|
|
55 | extern char const revision[]; |
|
|
56 | extern char const osinfo[]; |
|
|
57 | extern char const * const infotext[]; |
56 | |
58 | |
|
|
59 | char const generation[] = "$generation"; |
|
|
60 | char const creation[] = "$creation"; |
|
|
61 | char const platform[] = "$uname"; |
|
|
62 | char const version[] = "$1"; |
|
|
63 | char const osinfo[] = "$osinfo"; |
|
|
64 | |
57 | char const *infotext[] = |
65 | char const * const infotext[] = |
58 | { |
66 | { |
59 | "Atheme IRC Services --", |
67 | "Ermyth IRC Services --", |
|
|
68 | "Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team", |
60 | "Copyright © 2005-2007 Atheme Development Group", |
69 | "Copyright © 2005-2007 Atheme Development Group", |
61 | " ", |
70 | " ", |
62 | "All rights reserved.", |
71 | "All rights reserved.", |
63 | " ", |
72 | " ", |
64 | "Redistribution and use in source and binary forms, with or without modification,", |
73 | "Ermyth IRC Services is free software: you can redistribute it and/or modify", |
65 | "are permitted provided that the following conditions are met:", |
74 | "it under the terms of the GNU General Public License as published by", |
|
|
75 | "the Free Software Foundation, either version 3 of the License, or", |
|
|
76 | "(at your option) any later version.", |
66 | " ", |
77 | " ", |
67 | " Redistributions of source code must retain the above copyright notice,", |
78 | "This program is distributed in the hope that it will be useful,", |
68 | " this list of conditions and the following disclaimer.", |
79 | "but WITHOUT ANY WARRANTY; without even the implied warranty of", |
|
|
80 | "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", |
|
|
81 | "GNU General Public License for more details.", |
69 | " ", |
82 | " ", |
70 | " Redistributions in binary form must reproduce the above copyright notice,", |
83 | "You should have received a copy of the GNU General Public License", |
71 | " this list of conditions and the following disclaimer in the documentation", |
84 | "along with this program. If not, see <http://www.gnu.org/licenses/>.", |
72 | " and/or other materials provided with the distribution.", |
|
|
73 | " ", |
85 | " ", |
74 | " Neither the name of the author nor the names of its contributors may be", |
86 | "The authors can be reached via e-mail to <pip88nl@gmail.com>", |
75 | " used to endorse or promote products derived from this software without", |
|
|
76 | " specific prior written permission.", |
|
|
77 | " ", |
87 | " ", |
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,", |
88 | "Currently Ermyth's core group consists of the following developers,", |
90 | "in nick-alphabetical order:", |
89 | "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>", |
90 | " pippijn, Pippijn van Steenhoven <pip88nl@gmail.com>", |
95 | " ", |
91 | " ", |
96 | "The following people have contributed blood, sweat and tears to", |
92 | "The following people have contributed blood, sweat and tears to", |
97 | "this Atheme release:", |
93 | "this release:", |
98 | " alambert, Alex Lambert <alambert@quickfire.org>", |
94 | " alambert, Alex Lambert <alambert@quickfire.org>", |
99 | " beu, Elfyn McBratney <elfyn.mcbratney@gmail.com>", |
95 | " beu, Elfyn McBratney <elfyn.mcbratney@gmail.com>", |
100 | " Dianora, Diane Bruce <db@db.net>", |
96 | " Dianora, Diane Bruce <db@db.net>", |
|
|
97 | " gxti, Michael Tharp <gxti@partiallystapled.com>", |
|
|
98 | " jilles, Jilles Tjoelker <jilles@stack.nl>", |
101 | " kog, Greg Feigenson <kog@epiphanic.org>", |
99 | " kog, Greg Feigenson <kog@epiphanic.org>", |
102 | " kuja, Jeff Katz <jeff@katzonline.net>", |
100 | " kuja, Jeff Katz <jeff@katzonline.net>", |
103 | " lu_zero, Luca Barbato <lu_zero@gentoo.org>", |
101 | " lu_zero, Luca Barbato <lu_zero@gentoo.org>", |
|
|
102 | " nenolod, William Pitcock <nenolod@nenolod.net>", |
104 | " pfish, Patrick Fish <pofish@gmail.com>", |
103 | " pfish, Patrick Fish <pofish@gmail.com>", |
105 | " terminal, Theo Julienne <admin@ozweb.nu>", |
104 | " terminal, Theo Julienne <admin@ozweb.nu>", |
106 | " Trystan, Trystan Scott Lee <trystan@nomadirc.net>", |
105 | " Trystan, Trystan Scott Lee <trystan@nomadirc.net>", |
107 | " w00t, Robin Burchell <viroteck@viroteck.net>", |
106 | " w00t, Robin Burchell <viroteck@viroteck.net>", |
108 | " zparta, Jens Holmqvist <zparta@hispan.se>", |
107 | " zparta, Jens Holmqvist <zparta@hispan.se>", |
109 | " ", |
108 | " ", |
110 | "Visit our website at http://www.atheme.net", |
109 | "Visit our website at http://ermyth.schmorp.de/", |
111 | 0, |
110 | 0, |
112 | }; |
111 | }; |
113 | !SUB!THIS! |
112 | !SUB!THIS! |