… | |
… | |
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.5 2007/09/09 20:05:53 pippijn Exp $ |
10 | # $Id: version.sh,v 1.6 2007/09/22 14:27:30 pippijn Exp $ |
11 | # |
11 | # |
12 | |
12 | |
13 | package=ermyth |
13 | package=ermyth |
14 | |
14 | |
15 | echo "Extracting $package/src/version.C..." |
15 | echo "Extracting $package/src/version.C..." |
… | |
… | |
32 | awk '{if (NF == 6) \ |
32 | awk '{if (NF == 6) \ |
33 | { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ |
33 | { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ |
34 | else \ |
34 | else \ |
35 | { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` |
35 | { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` |
36 | |
36 | |
37 | buildid=`echo "\$Revision: 1.5 $" | \ |
37 | buildid=`echo "\$Revision: 1.6 $" | \ |
38 | awk '{ print $2 }'`; |
38 | awk '{ print $2 }'`; |
39 | |
39 | |
40 | cat >version.C <<!SUB!THIS! |
40 | cat >version.C <<!SUB!THIS! |
41 | /* |
41 | /* |
42 | * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
42 | * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
… | |
… | |
55 | extern char const version[]; |
55 | extern char const version[]; |
56 | extern char const revision[]; |
56 | extern char const revision[]; |
57 | extern char const osinfo[]; |
57 | extern char const osinfo[]; |
58 | extern char const * const infotext[]; |
58 | extern char const * const infotext[]; |
59 | |
59 | |
60 | char const website[] = "http://ermyth.schmorp.de"; |
60 | char const website[] = "http://ermyth.xinutec.org"; |
61 | char const generation[] = "$generation"; |
61 | char const generation[] = "$generation"; |
62 | char const creation[] = "$creation"; |
62 | char const creation[] = "$creation"; |
63 | char const platform[] = "$uname"; |
63 | char const platform[] = "$uname"; |
64 | char const version[] = "$1"; |
64 | char const version[] = "$1"; |
65 | char const osinfo[] = "$osinfo"; |
65 | char const osinfo[] = "$osinfo"; |
… | |
… | |
106 | " terminal, Theo Julienne <admin@ozweb.nu>", |
106 | " terminal, Theo Julienne <admin@ozweb.nu>", |
107 | " Trystan, Trystan Scott Lee <trystan@nomadirc.net>", |
107 | " Trystan, Trystan Scott Lee <trystan@nomadirc.net>", |
108 | " w00t, Robin Burchell <viroteck@viroteck.net>", |
108 | " w00t, Robin Burchell <viroteck@viroteck.net>", |
109 | " zparta, Jens Holmqvist <zparta@hispan.se>", |
109 | " zparta, Jens Holmqvist <zparta@hispan.se>", |
110 | " ", |
110 | " ", |
111 | "Visit our website at http://ermyth.schmorp.de/", |
111 | "Visit our website at http://ermyth.xinutec.org/", |
112 | 0, |
112 | 0, |
113 | }; |
113 | }; |
114 | !SUB!THIS! |
114 | !SUB!THIS! |