Mercurial > octave
comparison libinterp/build-info.in.cc @ 21597:fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
* build-info.in.cc, build-info.h: New files.
* mk-build-info-h.in.sh: New script.
* configure.ac, Makefile.am: Update.
* module.mk (update_hg_id, libinterp/build-info.cc): New rules.
* version.m: Also return release date. Add input argument.
* toplev.cc (F__octave_config_info__): New fields, builddate, buildtime,
hgid, releasedate.
author | mmuetzel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 08 Apr 2016 21:41:18 +0200 |
parents | |
children | cf552443c104 |
comparison
equal
deleted
inserted
replaced
21596:07d30e6fcfde | 21597:fe1447ae68cf |
---|---|
1 // %NO_EDIT_WARNING% | |
2 /* | |
3 | |
4 Copyright (C) 2016 M. Muetzel | |
5 | |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
10 Free Software Foundation; either version 3 of the License, or (at your | |
11 option) any later version. | |
12 | |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with Octave; see the file COPYING. If not, see | |
20 <http://www.gnu.org/licenses/>. | |
21 | |
22 */ | |
23 | |
24 #include "build-info.h" | |
25 | |
26 std::string oct_hg_id (void) | |
27 { | |
28 return "%OCTAVE_HG_ID%"; | |
29 } | |
30 | |
31 std::string oct_build_date (void) | |
32 { | |
33 return __DATE__; | |
34 } | |
35 | |
36 std::string oct_build_time (void) | |
37 { | |
38 return __TIME__; | |
39 } |