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-AB-5_1_3-rel
|       || | |   |
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 ?

Peter
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to