Commit 55bc3c39 authored by sof's avatar sof

[project @ 2005-03-24 00:38:57 by sof]

FPTOOLS_HAPPY, FPTOOLS_ALEX: cope with 'x.y.z' formats (ignoring the 'z' patchlevel). Merge to STABLE (I suppose)
parent 15552e14
......@@ -263,7 +263,7 @@ fi
AC_CACHE_CHECK([for version of happy], fptools_cv_happy_version,
changequote(, )dnl
[if test x"$HappyCmd" = x"$SrcTreeHappyCmd" -a -e $srcdir/happy/mk/; then
fptools_cv_happy_version=`grep '^ProjectVersion[ ]*=' $srcdir/happy/mk/ | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`;
fptools_cv_happy_version=`grep '^ProjectVersion[ ]*=' $srcdir/happy/mk/ | sed 's/[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`;
elif test x"$HappyCmd" != x; then
fptools_cv_happy_version="`$HappyCmd -v |
grep 'Happy Version' | sed -e 's/Happy Version \([^ ]*\).*/\1/g'`" ;
......@@ -330,7 +330,7 @@ fi
AC_CACHE_CHECK([for version of alex], fptools_cv_alex_version,
changequote(, )dnl
[if test x"$AlexCmd" = x"$SrcTreeAlexCmd"; then
fptools_cv_alex_version=`grep '^ProjectVersion[ ]*=' $srcdir/alex/mk/ | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`;
fptools_cv_alex_version=`grep '^ProjectVersion[ ]*=' $srcdir/alex/mk/ | sed 's/[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`;
elif test x"$AlexCmd" != x; then
fptools_cv_alex_version="`$AlexCmd -v |
grep 'Alex [Vv]ersion' | sed -e 's/Alex [Vv]ersion \([0-9\.]*\).*/\1/g'`" ;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment