[PATCH] automatic major, minor, and patchlevel definitions

Andres Salomon dilinger at debian.org
Tue Oct 3 09:17:00 PDT 2006


On Tue, 2006-10-03 at 11:39 +0300, Daniel Stone wrote:
> On Mon, Oct 02, 2006 at 05:43:46PM -0400, Andres Salomon wrote:
> > 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..
> 
> Can't you ditch the ? in the sed expression and then just use || echo 0?

I can ditch the ?'s; no guarantees of the portability of the attached
patch.  FWIW, I didn't go this route initially because I preferred
keeping the regexps the same.

I'm not aware of any way to switch to || echo 0.  If sed exited w/ a
non-zero value if the pattern didn't match (or if there was some way to
force sed to do that), it would be a possibility.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: xorgmacros3.patch
Type: text/x-patch
Size: 1384 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20061003/198036db/attachment.bin>


More information about the xorg mailing list