1 | #!/bin/sh |
1 | #!/bin/sh |
2 | # |
2 | # |
3 | # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
3 | # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
4 | # Copyright © 2005-2006 Atheme Development Group |
4 | # Copyright © 2005-2006 Atheme Development Group |
5 | # Rights to this code are documented in doc/LICENSE. |
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.1 2007/07/19 08:24:59 pippijn Exp $ |
10 | # $Id: version.sh,v 1.2 2007/07/21 01:29:13 pippijn Exp $ |
11 | # |
11 | # |
12 | |
12 | |
13 | spitshell=cat |
13 | spitshell=cat |
14 | package=atheme |
14 | package=atheme |
15 | |
15 | |
… | |
… | |
33 | awk '{if (NF == 6) \ |
33 | awk '{if (NF == 6) \ |
34 | { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ |
34 | { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ |
35 | else \ |
35 | else \ |
36 | { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` |
36 | { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` |
37 | |
37 | |
38 | buildid=`echo "\$Revision: 1.1 $" | \ |
38 | buildid=`echo "\$Revision: 1.2 $" | \ |
39 | awk '{ print $2 }'`; |
39 | awk '{ print $2 }'`; |
40 | |
40 | |
41 | $spitshell >version.C <<!SUB!THIS! |
41 | $spitshell >version.C <<!SUB!THIS! |
42 | /* |
42 | /* |
43 | * Copyright © 2007 The libservices team |
43 | * Copyright © 2007 The libservices team |
44 | * Copyright © 2005-2007 Atheme Development Group |
44 | * Copyright © 2005-2007 Atheme Development Group |
45 | * Rights to this code are documented in doc/LICENSE. |
45 | * Rights to this code are documented in doc/pod/license.pod. |
46 | * |
46 | * |
47 | * This file contains version information. |
47 | * This file contains version information. |
48 | * Autogenerated by version.sh. |
48 | * Autogenerated by version.sh. |
49 | */ |
49 | */ |
50 | |
50 | |