summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremy@tifa-2.local>2008-02-16 02:18:50 -0800
committerJeremy Huddleston <jeremy@tifa-2.local>2008-02-16 02:18:50 -0800
commite1c1ee013e72dafd7b00ca96a8d4a25273b88e15 (patch)
treed1f5af4940a363106010172fb738446da4c1f297
parente20c503d24e5ccf03035aa0f6d833d235d2179df (diff)
Support version strings like 1.2.3-blah4
-rw-r--r--xorgversion.m44
1 files changed, 2 insertions, 2 deletions
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