Mercurial > octave
diff libgui/src/liboctgui-build-info.h @ 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 | c69805d1fa64 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libgui/src/liboctgui-build-info.h Mon Apr 11 13:53:17 2016 -0400 @@ -0,0 +1,34 @@ +/* + +Copyright (C) 2016 M. Muetzel + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +<http://www.gnu.org/licenses/>. + +*/ + +#if ! defined (octave_liboctgui_build_info_h) +#define octave_liboctgui_build_info_h 1 + +#include "octave-config.h" + +#include <ctime> + +#include <string> + +extern std::string liboctgui_hg_id (void); + +#endif