I'm using the conditional attribute to build two very similar books with a few unique sections, without having to maintain two totally separate document sets. The problem is, this means I have to change the condition value in the publican.cfg file each time I build.
jfearn: the problem you are going to hit is that it uses Book_Info for the details, or the cfg file, and AIUI we don't handle multiple config files in packaging
laubai: it will just mean that I need to edit the publican.cfg file every time we go to build
laubai: if we could set the condition as part of the command line that would be useful, though
laubai: is there any way to do that, do you think?
jfearn: no, I'd do it with a second config file, but make sure we pass the config file in to the packaging
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Actually I think this already works, because the publican.cfg file used in the SRPM is written at packaging time by publican.
It probably needs to be documented in the PUG though.
Confirmed that the nominated alternative config file is used to generate the publican.cfg file that gets packaged.
Advice added to "3.8. Conditional tagging" in the PUG:
If you maintain two versions of a book in the same repository, we recommend using a separate config file for each version. For example, the upstream.cfg file might contain the condition condition: upstream and the enterprise.cfg file might contain the condition condition: enterprise. You could then specify the version of the document to build or package with the --config; for example, publican package --lang en-US --config upstream.cfg. Using two separate config files saves you from having to edit the one config file each time you build or package a document.
Committed revision 1831.
Verified that the advice can be found in the Conditionaltagging.xml file in the PUG.