>>>>> "José" == José Matos <[EMAIL PROTECTED]> writes:

José> On Tuesday 14 November 2006 2:08 pm, Jean-Marc Lasgouttes wrote:
>> Here is what I do these days for 1.4 releases.

José>   Thank you Jean-Marc, it helps a lot. :-)

>> About version number: note that, with autoconf at least, if you
>> name it anything else that 1.5.0svn or 1.5.0preN, the build system
>> will default to configuring in stable mode (without debug and
>> assertions). This may or may not be what you expect. It may be time
>> to change that before release.

José> Will something like this work?

I'd use case instead to avoid portability problems. Something like (untested)

lyx_devel_version=no
lyx_prerelease=no
case AC_PACKAGE_VERSION in
  *svn*) 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.";;
  *pre*|*alpha*)lyx_prerelease=yes
        echo "WARNING: This is a prerelease. Be careful and backup your 
documents.";;
esac

But I suspect we'd better put alpha in the devel camp insetead of pre.
Do as you prefer.

BTW, at the same time, the following fix looks useful.

JMarc

Index: /afs/inria.fr/rocq/home/preval/lasgoutt/src/lyx/lyx-devel/config/lyxinclude.m4
===================================================================
--- /afs/inria.fr/rocq/home/preval/lasgoutt/src/lyx/lyx-devel/config/lyxinclude.m4	(revision 15933)
+++ /afs/inria.fr/rocq/home/preval/lasgoutt/src/lyx/lyx-devel/config/lyxinclude.m4	(working copy)
@@ -195,7 +195,7 @@ AC_ARG_ENABLE(stdlib-debug,
 
 AC_ARG_ENABLE(concept-checks,
   AC_HELP_STRING([--enable-concept-checks],[enable concept checks]),,
-  [ if test $lyx_devel_version = yes -o $lyx-prerelease = yes ; then
+  [ if test $lyx_devel_version = yes -o $lyx_prerelease = yes ; then
 	enable_concept_checks=yes;
     else
         enable_concept_checks=no;

Reply via email to