ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/src/version.sh
Revision: 1.3
Committed: Tue Aug 28 17:08:12 2007 UTC (16 years, 9 months ago) by pippijn
Content type: application/x-sh
Branch: MAIN
Changes since 1.2: +66 -67 lines
Log Message:
- changed name
- updated the example config to the new system
- added more documentation
- enhanced documentation generators
- added a link to the pdf to the website
- added an RSS feed generator
- transitioned hooks to c++ callbacks
- did various merges with upstream along the way
- added const where appropriate
- removed the old block allocator
- fixed most memory leaks
- transitioned some dictionaries to std::map
- transitioned some lists to std::vector
- made some free functions members where appropriate
- renamed string to dynstr and added a static string ststr
- use NOW instead of time (NULL) if possible
- completely reworked database backends, crypto handlers and protocol handlers
  to use an object factory
- removed the old module system. ermyth does not do any dynamic loading anymore
- fixed most of the build system
- reworked how protocol commands work

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.3 # $Id: version.sh,v 1.2 2007-07-21 01:29:13 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.3 buildid=`echo "\$Revision: 1.2 $" | \
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.3 * Rights to this code are documented in doc/pod/gplicense.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     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 pippijn 1.1
65 pippijn 1.3 char const * const infotext[] =
66 pippijn 1.1 {
67 pippijn 1.3 "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 pippijn 1.1 };
112     !SUB!THIS!