This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
RE: help/version patches
- From: Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
- To: Robert Collins <robert dot collins at itdomain dot com dot au>
- Cc: cygwin-patches at cygwin dot com
- Date: Mon, 25 Feb 2002 06:45:32 -0800 (PST)
- Subject: 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