diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2006-12-18 18:25:25 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-12-18 18:25:25 -0800 |
commit | e8b485d9252ffbb357a0b987ab1488d4033b555c (patch) | |
tree | 403d9300364ed1bcf13bcc117d7148a9022ce387 /xorgversion.m4 | |
parent | 0a4aadbda211a5128bae1c2e860b781c95c4bbf5 (diff) | |
download | xorg-util-macros-e8b485d9252ffbb357a0b987ab1488d4033b555c.tar.gz |
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.m4 | 6 |
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 |