summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2006-10-26 19:08:29 -0700
committerAaron Plattner <aplattner@nvidia.com>2006-11-28 14:12:33 -0800
commit162391f8fb640184db3917f3842fbff0bc9ce606 (patch)
tree1bcc22e248bebe270c77048ff4583d0e8c0368c5
parent98372d0f94a9d658a7257d2199ef37a2449b9961 (diff)
Handle more than 1 digit in the version numbers.
Based on a change by George Sapountzis <gsap7@yahoo.gr>.
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 2143573..0a5754e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,13 +27,13 @@ AC_INIT([xf86-video-nv],
xf86-video-nv)
AC_DEFINE_UNQUOTED([NV_MAJOR_VERSION],
- [$(echo $PACKAGE_VERSION | sed -e 's/^\([[0-9]]\)\.[[0-9]]\.[[0-9]]/\1/')],
+ [$(echo $PACKAGE_VERSION | sed -e 's/^\([[0-9]\+]\)\.[[0-9]\+]\.[[0-9]\+]/\1/')],
[Major version])
AC_DEFINE_UNQUOTED([NV_MINOR_VERSION],
- [$(echo $PACKAGE_VERSION | sed -e 's/^[[0-9]]\.\([[0-9]]\)\.[[0-9]]/\1/')],
+ [$(echo $PACKAGE_VERSION | sed -e 's/^[[0-9]\+]\.\([[0-9]\+]\)\.[[0-9]\+]/\1/')],
[Minor version])
AC_DEFINE_UNQUOTED([NV_PATCHLEVEL],
- [$(echo $PACKAGE_VERSION | sed -e 's/^[[0-9]]\.[[0-9]]\.\([[0-9]]\)/\1/')],
+ [$(echo $PACKAGE_VERSION | sed -e 's/^[[0-9]\+]\.[[0-9]\+]\.\([[0-9]\+]\)/\1/')],
[Patch version])
AC_CONFIG_SRCDIR([Makefile.am])