Calling Tortoise from command line and build if new code (how to know if tortoise updated anything)?

Posted by Iakob on Stack Overflow See other posts from Stack Overflow or by Iakob
Published on 2010-05-31T09:45:13Z Indexed on 2010/05/31 22:13 UTC
Read the original article Hit count: 184

Filed under:
|

I am writing a batch file which is supposed to update the source files from tortoise and - if anything new was gotten - build the solution. Should be a very simple task.

My batchfile looks like this (I've removed the non-essentials)

set updatepath=%1
set solution=%2
set output=%3.txt

call TortoiseProc.exe /command:update /path:%updatepath% /closeonend:2    
call %devenv% %solution% /Build Debug /Out %output%

Now, I'd like to know if tortoise actually got new code for me and the not build if it didn't. How do I do this?

I am running Windows Vista

(The batch script is called from another batch script about 7 times - one for each project I need updated and - perhaps - build).

© Stack Overflow or respective owner

Related posts about batch

Related posts about tortoise