ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/src/version.sh
Revision: 1.4
Committed: Wed Sep 5 11:23:15 2007 UTC (16 years, 8 months ago) by pippijn
Content type: application/x-sh
Branch: MAIN
Changes since 1.3: +3 -3 lines
Log Message:
removed GPLed code and put license back to BSD

File Contents

# Content
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.3 2007-08-28 17:08:12 pippijn Exp $
11 #
12
13 package=ermyth
14
15 echo "Extracting $package/src/version.C..."
16
17 if test -r version.C.last
18 then
19 generation=`sed -n 's/^char const generation\[\] = \"\(.*\)\";/\1/p' < version.C.last`
20 if test ! "$generation" ; then generation=0; fi
21 else
22 generation=0
23 fi
24
25 generation=`expr $generation + 1`
26
27 uname=`uname`
28
29 osinfo=`uname -a`;
30
31 creation=`date | \
32 awk '{if (NF == 6) \
33 { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
34 else \
35 { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
36
37 buildid=`echo "\$Revision: 1.3 $" | \
38 awk '{ print $2 }'`;
39
40 cat >version.C <<!SUB!THIS!
41 /*
42 * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
43 * Copyright © 2005-2007 Atheme Development Group
44 * Rights to this code are documented in doc/pod/license.pod.
45 *
46 * This file contains version information.
47 * Autogenerated by version.sh.
48 */
49
50 // declaring them extern or the compiler might optimise them out entirely
51 extern char const generation[];
52 extern char const creation[];
53 extern char const platform[];
54 extern char const version[];
55 extern char const revision[];
56 extern char const osinfo[];
57 extern char const * const infotext[];
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
65 char const * const infotext[] =
66 {
67 "Ermyth IRC Services --",
68 "Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team",
69 "Copyright © 2005-2007 Atheme Development Group",
70 " ",
71 "All rights reserved.",
72 " ",
73 "Ermyth IRC Services is free software: you can redistribute it and/or modify",
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.",
77 " ",
78 "This program is distributed in the hope that it will be useful,",
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.",
82 " ",
83 "You should have received a copy of the GNU General Public License",
84 "along with this program. If not, see <http://www.gnu.org/licenses/>.",
85 " ",
86 "The authors can be reached via e-mail to <pip88nl@gmail.com>",
87 " ",
88 "Currently Ermyth's core group consists of the following developers,",
89 "in nick-alphabetical order:",
90 " pippijn, Pippijn van Steenhoven <pip88nl@gmail.com>",
91 " ",
92 "The following people have contributed blood, sweat and tears to",
93 "this release:",
94 " alambert, Alex Lambert <alambert@quickfire.org>",
95 " beu, Elfyn McBratney <elfyn.mcbratney@gmail.com>",
96 " Dianora, Diane Bruce <db@db.net>",
97 " gxti, Michael Tharp <gxti@partiallystapled.com>",
98 " jilles, Jilles Tjoelker <jilles@stack.nl>",
99 " kog, Greg Feigenson <kog@epiphanic.org>",
100 " kuja, Jeff Katz <jeff@katzonline.net>",
101 " lu_zero, Luca Barbato <lu_zero@gentoo.org>",
102 " nenolod, William Pitcock <nenolod@nenolod.net>",
103 " pfish, Patrick Fish <pofish@gmail.com>",
104 " terminal, Theo Julienne <admin@ozweb.nu>",
105 " Trystan, Trystan Scott Lee <trystan@nomadirc.net>",
106 " w00t, Robin Burchell <viroteck@viroteck.net>",
107 " zparta, Jens Holmqvist <zparta@hispan.se>",
108 " ",
109 "Visit our website at http://ermyth.schmorp.de/",
110 0,
111 };
112 !SUB!THIS!