From e1c1ee013e72dafd7b00ca96a8d4a25273b88e15 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sat, 16 Feb 2008 02:18:50 -0800 Subject: Support version strings like 1.2.3-blah4 --- xorgversion.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xorgversion.m4') diff --git a/xorgversion.m4 b/xorgversion.m4 index f270127..7d3dda8 100644 --- a/xorgversion.m4 +++ b/xorgversion.m4 @@ -44,14 +44,14 @@ AC_DEFUN([XORG_RELEASE_VERSION],[ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], [`echo $PACKAGE_VERSION | cut -d . -f 1`], [Major version of this package]) - PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` + PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` if test "x$PVM" = "x"; then PVM="0" fi AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], [$PVM], [Minor version of this package]) - PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` + PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` if test "x$PVP" = "x"; then PVP="0" fi -- cgit v1.2.3