This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: help/version patches


--- Robert Collins <robert.collins@itdomain.com.au> wrote:
> Some confusion here: I was meaning that having something like:
> const char *revision="$Revision: $ ";
> in the file allows you to then use:
> const char *version = revision[11];
> to obtain the correct version number.
> 
> Rob

I'm not sure I understand. Hard-code the revision in a const char 
instead of directly in a printf? Is that just so it's near the top
of the file and easier to get to? Or is there a way to automate
(without a bunch of sed mess in the Makefile) version numbers?
It looks like the mingw headers have a lines like "* $Revision: 1.2 $ "
in the comments, but I assume that's for a script of some sort to use.


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]