>>>>> "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 This is updated only when lyx_main.C is updated. Here is another idea. Of course even better would be to use the svn version, but we already discussed that and getting it right is difficult. JMarc
Index: configure.ac =================================================================== --- configure.ac (revision 14670) +++ 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 14670) +++ 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 14670) +++ 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 14670) +++ 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"