diff options
author | Jeremy Huddleston <jeremy@tifa-2.local> | 2008-02-16 02:18:50 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremy@tifa-2.local> | 2008-02-16 02:18:50 -0800 |
commit | e1c1ee013e72dafd7b00ca96a8d4a25273b88e15 (patch) | |
tree | d1f5af4940a363106010172fb738446da4c1f297 | |
parent | e20c503d24e5ccf03035aa0f6d833d235d2179df (diff) |
Support version strings like 1.2.3-blah4
-rw-r--r-- | xorgversion.m4 | 4 |
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 |