* configure.ac: add LYX_DATE variable for release date.

* config/lyxinclude.m4: reset release date for development versions.

	* src/version.C.in: make lyx_release_date a placeholder.

	* src/lyx_main.C (parse_version): 
	* src/frontends/controllers/ControlAboutlyx.C (getVersion): change a 
	bit the display of LyX release date.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14712 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-08-16 21:54:55 +00:00
parent a9b8f12846
commit f8a5da9048
5 changed files with 6 additions and 4 deletions

View File

@ -11,6 +11,7 @@ echo "configuring LyX version" AC_PACKAGE_VERSION
if echo AC_PACKAGE_VERSION | grep 'svn' >/dev/null ; then
lyx_devel_version=yes
AC_DEFINE(DEVEL_VERSION, 1, [Define if you are building a development version of LyX])
LYX_DATE="not released yet"
echo "WARNING: This is a development version. Expect bugs."
else
lyx_devel_version=no

View File

@ -1,6 +1,7 @@
dnl Process with autoconf to generate configure script -*- sh -*-
AC_INIT(LyX,1.5.0svn,[lyx-devel@lists.lyx.org],[lyx])
AC_SUBST(LYX_DATE, [Fri, Jul 13, 2006])
AC_PREREQ(2.52)
AC_CONFIG_SRCDIR(src/main.C)
AC_CONFIG_HEADERS([src/config.h])

View File

@ -85,9 +85,9 @@ string const ControlAboutlyx::getVersion() const
ss << _("LyX Version ")
<< lyx_version
<< _(" of ")
<< " ("
<< lyx_release_date
<< "\n"
<< ")\n"
<< _("Library directory: ")
<< makeDisplayPath(package().system_support())
<< "\n"

View File

@ -943,7 +943,7 @@ int parse_help(string const &, string const &)
int parse_version(string const &, string const &)
{
lyxerr << "LyX " << lyx_version
<< " of " << lyx_release_date << endl;
<< " (" << lyx_release_date << ")" << endl;
lyxerr << "Built on " << __DATE__ << ", " << __TIME__ << endl;
lyxerr << lyx_version_info << endl;

View File

@ -15,7 +15,7 @@
///
char const * lyx_version = "@PACKAGE_VERSION@";
///
char const * lyx_release_date = "Thu, Jan 30, 2003";
char const * lyx_release_date = "@LYX_DATE@";
/// This is the version information shown by 'lyx -version'
char const * lyx_version_info = "@VERSION_INFO@";