annotate libinterp/build-info.h @ 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21597
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
1 // %NO_EDIT_WARNING%
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
2 /*
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
3
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
4 Copyright (C) 2016 M. Muetzel
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
5
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
6 This file is part of Octave.
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
7
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
8 Octave is free software; you can redistribute it and/or modify it
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
10 Free Software Foundation; either version 3 of the License, or (at your
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
11 option) any later version.
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
12
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
13 Octave is distributed in the hope that it will be useful, but WITHOUT
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
16 for more details.
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
17
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
19 along with Octave; see the file COPYING. If not, see
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
20 <http://www.gnu.org/licenses/>.
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
21
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
22 */
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
23
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
24 #ifdef HAVE_CONFIG_H
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
25 # include "config.h"
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
26 #endif
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
27
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
28 #include <string>
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
29
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
30 OCTAVE_API std::string oct_hg_id (void);
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
31
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
32 OCTAVE_API std::string oct_build_date (void);
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
33
fe1447ae68cf Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
diff changeset
34 OCTAVE_API std::string oct_build_time (void);