[PATCH] automatic major, minor, and patchlevel definitions

Daniel Stone daniel at fooishbar.org
Wed Oct 4 02:39:32 PDT 2006


On Tue, Oct 03, 2006 at 12:17:00PM -0400, Andres Salomon wrote:
> 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.

Sorry, I thought that was the case.  Nevermind.



More information about the xorg mailing list