summaryrefslogtreecommitdiff
path: root/xorgversion.m4
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2006-12-18 18:25:25 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-12-18 18:25:25 -0800
commite8b485d9252ffbb357a0b987ab1488d4033b555c (patch)
tree403d9300364ed1bcf13bcc117d7148a9022ce387 /xorgversion.m4
parent0a4aadbda211a5128bae1c2e860b781c95c4bbf5 (diff)
Bug 9368: non portable sed usage in xorgversion.m4
Bugzilla #9368 <https://bugs.freedesktop.org/show_bug.cgi?id=9368> Patch #8140 <https://bugs.freedesktop.org/attachment.cgi?id=8140>
Diffstat (limited to 'xorgversion.m4')
-rw-r--r--xorgversion.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/xorgversion.m4 b/xorgversion.m4
index 421f3ab..f270127 100644
--- a/xorgversion.m4
+++ b/xorgversion.m4
@@ -42,16 +42,16 @@ AC_DEFUN([XORG_RELEASE_VERSION],[
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
fi
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
- [`echo $PACKAGE_VERSION | sed -ne 's/^\([[^\.]]\+\).*/\1/p'`],
+ [`echo $PACKAGE_VERSION | cut -d . -f 1`],
[Major version of this package])
- PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([[^\.]]\+\)\.\([[^\.]]\+\).*/\2/p'`
+ PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
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 | sed -ne 's/^\([[^\.]]\+\)\.\([[^\.]]\+\)\.\([[^\.]]\+\).*/\3/p'`
+ PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
if test "x$PVP" = "x"; then
PVP="0"
fi