ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/src/version.sh
(Generate patch)

Comparing ermyth/src/version.sh (file contents):
Revision 1.4 by pippijn, Wed Sep 5 11:23:15 2007 UTC vs.
Revision 1.5 by pippijn, Sun Sep 9 20:05:53 2007 UTC

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.4 2007/09/05 11:23:15 pippijn Exp $ 10# $Id: version.sh,v 1.5 2007/09/09 20:05:53 pippijn Exp $
11# 11#
12 12
13package=ermyth 13package=ermyth
14 14
15echo "Extracting $package/src/version.C..." 15echo "Extracting $package/src/version.C..."
32awk '{if (NF == 6) \ 32awk '{if (NF == 6) \
33 { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ 33 { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
34else \ 34else \
35 { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` 35 { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
36 36
37buildid=`echo "\$Revision: 1.4 $" | \ 37buildid=`echo "\$Revision: 1.5 $" | \
38 awk '{ print $2 }'`; 38 awk '{ print $2 }'`;
39 39
40cat >version.C <<!SUB!THIS! 40cat >version.C <<!SUB!THIS!
41/* 41/*
42 * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team 42 * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
46 * This file contains version information. 46 * This file contains version information.
47 * Autogenerated by version.sh. 47 * Autogenerated by version.sh.
48 */ 48 */
49 49
50// declaring them extern or the compiler might optimise them out entirely 50// declaring them extern or the compiler might optimise them out entirely
51extern char const website[];
51extern char const generation[]; 52extern char const generation[];
52extern char const creation[]; 53extern char const creation[];
53extern char const platform[]; 54extern char const platform[];
54extern char const version[]; 55extern char const version[];
55extern char const revision[]; 56extern char const revision[];
56extern char const osinfo[]; 57extern char const osinfo[];
57extern char const * const infotext[]; 58extern char const * const infotext[];
58 59
60char const website[] = "http://ermyth.schmorp.de";
59char const generation[] = "$generation"; 61char const generation[] = "$generation";
60char const creation[] = "$creation"; 62char const creation[] = "$creation";
61char const platform[] = "$uname"; 63char const platform[] = "$uname";
62char const version[] = "$1"; 64char const version[] = "$1";
63char const osinfo[] = "$osinfo"; 65char const osinfo[] = "$osinfo";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines