]>
Commit | Line | Data |
---|---|---|
cc6339ac MB |
1 | #! /bin/sh |
2 | ||
3 | echo "Extracting src/version.c ..." | |
4 | ||
5 | if test -f ../.release | |
6 | then | |
7 | cvs_version=`cat ../.release` | |
8 | else | |
9 | cvs_version=`hg tip --template '{rev}:{node|short} {date|shortdate}'` | |
10 | fi | |
11 | ||
12 | /bin/cat >version.c <<!SUB!THIS! | |
13 | /* version.c - CVS Version specific information. | |
14 | * Copyright 2000-2004 srvx Development Team | |
15 | * | |
16 | * This file is part of x3. | |
17 | * | |
18 | * x3 is free software; you can redistribute it and/or modify | |
19 | * it under the terms of the GNU General Public License as published by | |
20 | * the Free Software Foundation; either version 3 of the License, or | |
21 | * (at your option) any later version. | |
22 | * | |
23 | * This program is distributed in the hope that it will be useful, | |
24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 | * GNU General Public License for more details. | |
27 | * | |
28 | * You should have received a copy of the GNU General Public License | |
29 | * along with srvx; if not, write to the Free Software Foundation, | |
30 | * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | |
31 | */ | |
32 | ||
33 | #include "version.h" | |
34 | ||
35 | const char *cvs_version = "$cvs_version"; | |
36 | ||
37 | !SUB!THIS! |