[PATCH] automatic major, minor, and patchlevel definitions

Andres Salomon dilinger at debian.org
Mon Oct 2 14:43:46 PDT 2006


On Mon, 2006-10-02 at 14:11 -0700, Aaron Plattner wrote:
> On Mon, Oct 02, 2006 at 05:05:59PM -0400, Andres Salomon wrote:
[...]
> > 
> > If people have no objections, I'll file a bug to get this included.
> 
> That's a good idea.  How hard would it be to make the macros generate a
> PACKAGE_VERSION_PATCHLEVEL of 0 if PACKAGE_VERSION is something like 1.2
> (instead of 1.2.0)?

I've attached a patch that does just that.  It also supports a
PACKAGE_VERSION of "1".

Testing for an empty minor or patchlevel string makes the patch a bit
uglier (imo); I prefer the original patch.  However, if people decide
that the additional functionality is worth it..

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xorgmacros2.patch
Type: text/x-patch
Size: 1438 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20061002/85c9e6c3/attachment.bin>


More information about the xorg mailing list