|
#1
|
|||
|
|||
Conditionally Execute Step Based On Updated Binary
I would like to be able to conditionally perform a SourceSafe action to label a project based on whether or not a binary file in a previous compiler action was updated. The compiler actions currently determine whether or not a binary file is updated to decide whether or not to increment the version. Is there a macro or anything set that we can check in later steps that will tell us if the binary file was updated?
|
#2
|
|||
|
|||
A couple options:
1) in the next step, use a conditional build rule of %LASTSTEP_OUTPUT% contains "incrementing version..." (without double quotes). 2) retrieve the project version before building and store in a temporary macro (as shown in the GetProjVer.bld sample); build the project; retrieve the version again, and then use a conditional build rule of %BEFORE_VER% is not equal to %VS6_PROJ_VER% (or %VSNET_PROJ_VER% depending on the type of project being built). |
#3
|
|||
|
|||
Thanks for the suggestions. I think they will work well.
|
|
|