[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

automatic version parsing with $Name$ keyword substitution ?

From: Peter Vollmer
Subject: automatic version parsing with $Name$ keyword substitution ?
Date: 27 Nov 2001 14:05:40 +0100

Hi all,

I'm planning to use CVS keyword substitution to parse the following
info out of the release tag of a software module.

The release tag would look something like:

|       || | |   |
project name |   |
        || | |   |
        Major variant branch
         | | |   |
         minor variant branch
           | |   |
           major number
             |   |
             minor number
                 tag type

The tag would be parsed with something like

#define VERSION_TAG "$Name$"

int parse_major(char*);
int parse_minor(char*);

static char tag[]=VERSION_TAG;

int minor= parse_major(tag);
int minor= parse_minor(tag);

Is there perhaps a ready-to-use library to cope with this problem or
is an open software project which already uses this technique?

Any suggestions ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]