The basic algorithm should work like this:
- Look to see if anything has changed since last build
- If so, get everything
- Build it
Part of what's tripping me up is a poor understanding of Vault's terminology and behavior. For example, what's the difference between a "version" and an "objverid"? And how do those values get affected when I modify a folder? How about when I modify a file in the folder? And if I modify a file nested deep down in subfolders under that folder?
Ideally, I'd like to know what the latest revision of the project, get all content up to and including that revision, built it and record that revision. Next run, look to see if anything has changed since that revision. But without a better understanding of the above, I don't know how to piece that together with the vault commands.