>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> One thing that would be nice if we could for svn versions was to
Lars> add the date of the build somewhere automatically. But for
Lars> release builds we should use a static non-generated string.
Lars> if devel version put now() in the date filed else require
Lars> manually set date.
Lars> Seems that we already have that... in the "Build on" stuff ...
Lars> no we don't:
Lars> LyX 1.5.0svn of Thu, Jan 30, 2003 Built on Aug 14 2006, 20:55:50
Jean-Marc> This is updated only when lyx_main.C is updated.
Jean-Marc> Here is another idea.
Lars, does this suit you? Actually, I missed a file in the original
patch.
JMarc
Index: configure.ac
===================================================================
--- configure.ac (revision 14684)
+++ configure.ac (working copy)
@@ -1,6 +1,7 @@
dnl Process with autoconf to generate configure script -*- sh -*-
AC_INIT(LyX,1.4.3svn,[EMAIL PROTECTED],[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])
Index: config/lyxinclude.m4
===================================================================
--- config/lyxinclude.m4 (revision 14684)
+++ config/lyxinclude.m4 (working copy)
@@ -11,6 +11,7 @@
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
Index: src/lyx_main.C
===================================================================
--- src/lyx_main.C (revision 14684)
+++ src/lyx_main.C (working copy)
@@ -873,7 +873,7 @@
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;
Index: src/frontends/controllers/ControlAboutlyx.C
===================================================================
--- src/frontends/controllers/ControlAboutlyx.C (revision 14684)
+++ src/frontends/controllers/ControlAboutlyx.C (working copy)
@@ -85,9 +85,9 @@
ss << _("LyX Version ")
<< lyx_version
- << _(" of ")
+ << " ("
<< lyx_release_date
- << "\n"
+ << ")\n"
<< _("Library directory: ")
<< MakeDisplayPath(package().system_support())
<< "\n"
Index: src/version.C.in
===================================================================
--- src/version.C.in (revision 14684)
+++ src/version.C.in (working copy)
@@ -15,7 +15,7 @@
///
char const * lyx_version = "@PACKAGE_VERSION@";
///
-char const * lyx_release_date = "Fri, Jul 13, 2006";
+char const * lyx_release_date = "@LYX_DATE@";
/// This is the version information shown by 'lyx -version'
char const * lyx_version_info = "@VERSION_INFO@";