comparison libgui/src/liboctgui-build-info.in.cc @ 21608:80258bb3a14b

store hg id info in libgui and main exe and check for consistency (bug #45659) * libgui/src/liboctgui-build-info.h, libgui/src/liboctgui-build-info.in.cc, src/octave-build-info.h, src/octave-build-info.in.cc: New files. * libgui/src/module.mk, src/module.mk: Update. * main-cli.cc (check_hg_versions): New function. * main-gui.cc (check_hg_versions): New function. * toplev.cc (F__octave_config_info__): Only keep one hg_id field since all libraries and the main executable file are required to match.
author John W. Eaton <jwe@octave.org>
date Mon, 11 Apr 2016 13:53:17 -0400
parents
children aba2e6293dd8
comparison
equal deleted inserted replaced
21607:37f6ed8a6f1b 21608:80258bb3a14b
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 #ifdef HAVE_CONFIG_H
25 # include "config.h"
26 #endif
27
28 #include "liboctgui-build-info.h"
29
30 std::string
31 liboctgui_hg_id (void)
32 {
33 return "%OCTAVE_HG_ID%";
34 }