ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/src/version.sh
Revision: 1.6
Committed: Sat Sep 22 14:27:30 2007 UTC (16 years, 8 months ago) by pippijn
Content type: application/x-sh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +4 -4 lines
Log Message:
split up ermyth into ermyth-modules, libermyth (currently just ermyth-util) and ermyth-core

File Contents

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