It's slightly more complicated than just using a Flare batch target, as everything is under source control and some of my topics are auto-generated from definitions in the code base. I also need to copy the Flare build outputs to their final location. We also have some PDF-only documents that are still generated from Word sources, so those PDFs are "built" by a straight copy from their existing location to their final location for the build. This means I need to wrap various commands around bits of the build to do things like checkouts, checkins, auto-generation of content, copying files etc, hence the need for a script. All this is under control . . .
However, things like the document date (print documents only), software version, copyright year etc are set as variables in the target, and these need to be updated immediately before the build, ideally with a value provided to me from our software build system. Can anyone suggest a simple way of doing this that can be included in my batch build script?
For example, I have a variable called DocumentDate, which I set by default in all my targets to [DD MMM YYYY]. For the final build, I'd like to set it to the a real value. For example, if the build was today, I'd like 30 July 2013.
So in the target file, or example, I’d need to replace:
Code: Select all
Name="GLOBAL DocumentVariables/DocumentDate">[DD MMM YYYY]</Variable>Code: Select all
Name="GLOBAL DocumentVariables/DocumentDate">30 July 2013</Variable>