diff options
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | src/nv_driver.c | 2 | ||||
-rw-r--r-- | src/riva_driver.c | 2 |
3 files changed, 3 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index 0a5754e..93ce107 100644 --- a/configure.ac +++ b/configure.ac @@ -26,15 +26,7 @@ AC_INIT([xf86-video-nv], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xf86-video-nv) -AC_DEFINE_UNQUOTED([NV_MAJOR_VERSION], - [$(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/')], - [Minor version]) -AC_DEFINE_UNQUOTED([NV_PATCHLEVEL], - [$(echo $PACKAGE_VERSION | sed -e 's/^[[0-9]\+]\.[[0-9]\+]\.\([[0-9]\+]\)/\1/')], - [Patch version]) +XORG_RELEASE_VERSION AC_CONFIG_SRCDIR([Makefile.am]) AM_CONFIG_HEADER([config.h]) diff --git a/src/nv_driver.c b/src/nv_driver.c index cb759be..fc83770 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -458,7 +458,7 @@ static XF86ModuleVersionInfo nvVersRec = MODINFOSTRING1, MODINFOSTRING2, XORG_VERSION_CURRENT, - NV_MAJOR_VERSION, NV_MINOR_VERSION, NV_PATCHLEVEL, + PACKAGE_VERSION_MAJOR, PACKAGE_VERSION_MINOR, PACKAGE_VERSION_PATCHLEVEL, ABI_CLASS_VIDEODRV, /* This is a video driver */ ABI_VIDEODRV_VERSION, MOD_CLASS_VIDEODRV, diff --git a/src/riva_driver.c b/src/riva_driver.c index e062995..f07a726 100644 --- a/src/riva_driver.c +++ b/src/riva_driver.c @@ -177,7 +177,7 @@ static XF86ModuleVersionInfo rivaVersRec = MODINFOSTRING1, MODINFOSTRING2, XORG_VERSION_CURRENT, - NV_MAJOR_VERSION, NV_MINOR_VERSION, NV_PATCHLEVEL, + PACKAGE_VERSION_MAJOR, PACKAGE_VERSION_MINOR, PACKAGE_VERSION_PATCHLEVEL, ABI_CLASS_VIDEODRV, /* This is a video driver */ ABI_VIDEODRV_VERSION, MOD_CLASS_VIDEODRV, |