From: José Matox Date: Wed, 15 Nov 2006 23:10:24 +0000 (+0000) Subject: Remove usage from egrep, cleaner code (Jean-Marc) X-Git-Tag: 1.6.10~11861 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8bc788c59887a5db23026c5cb5dd8a9f491049e9;p=features.git Remove usage from egrep, cleaner code (Jean-Marc) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15939 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index e2898e2eb4..96f37cb2c1 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -8,20 +8,16 @@ dnl Usage LYX_CHECK_VERSION Displays version of LyX being built and dnl sets variables "lyx_devel_version" and "lyx_prerelease" AC_DEFUN([LYX_CHECK_VERSION],[ 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 -fi -if echo AC_PACKAGE_VERSION | egrep 'pre|alpha' > /dev/null ; then - lyx_prerelease=yes - echo "WARNING: This is a prerelease. Be careful and backup your documents." -else - lyx_prerelease=no -fi +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 AC_SUBST(lyx_devel_version)])