PDA

View Full Version : Perforce Sync and Capture Output


k_shehadeh
11-08-2005, 04:35 PM
I need a way to perform a perforce sync (which I know how to do) then based on the output of the command determine if any the build needs to continue. That is, if nothing was out of date then I can assume that no build has to be made yet and the script will exit.

Does anyone have any example code for doing this?

Thanks,
Karim

kinook
11-09-2005, 08:14 AM
Attached is a project showing one way to do this. Also, the ContinuousIntegration.bld sample demonstrates another method (using a last build timestamp and the changes command).

k_shehadeh
11-09-2005, 09:12 AM
That worked perfectly. Thank you!