[Top][All Lists]

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

Automatically increment build number

From: Weber, Mathias-Henry 1254 PPW-P1
Subject: Automatically increment build number
Date: Tue, 8 May 2001 09:32:55 +0200

I want my project to output the actual build number. My idea is to have a C
file containing the build number and automatically increment this build
number each time anybody issues a "commit".

In principle this would mean the following steps:

        committing "Modified.cpp" starts
                checkout "BuildNo.cpp"
                increment build number within file "BuildNo.cpp"
                committing "BuildNo.cpp" starts
                committing "BuildNo.cpp" ends (hopefully)
        committing "Modified.cpp" ends

Now the problem is twofold:

1. The commit process is recursive which will probably result in a deadlock
2. The checkout of "BuildNo.cpp" happens on the server. What is the best way
to accomplish/enforce an update on all clients?

Thanks in advance for any advice.


reply via email to

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