Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Conditionally Execute Step Based On Updated Binary (https://www.kinook.com/Forum/showthread.php?t=276)

ShaneJimmerson 12-19-2003 01:43 PM

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?

kinook 12-19-2003 02:50 PM

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).

ShaneJimmerson 12-19-2003 03:34 PM

Thanks for the suggestions. I think they will work well.


All times are GMT -5. The time now is 10:01 PM.


Copyright © 1999-2023 Kinook Software, Inc.