diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2006-11-30 17:14:38 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2006-11-30 17:14:38 -0800 |
commit | 08bb966abbca11c4581d666af3249e4922156e03 (patch) | |
tree | cdbe8e0fb0612a5a2ecadee2fba8566fd16327f7 | |
parent | 162391f8fb640184db3917f3842fbff0bc9ce606 (diff) |
Use XORG_RELEASE_VERSION.
-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, |