Bug 798485
Summary: | Support out-of-tree builds | ||
---|---|---|---|
Product: | [Community] Publican | Reporter: | Peter Hutterer <peter.hutterer> |
Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ruediger Landmann <rlandman+disabled> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | future | CC: | mhideo, rlandman+disabled, tcapek |
Target Milestone: | 3.0 | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 3.0.0 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-10-31 03:11:15 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 820023 |
Description
Peter Hutterer
2012-02-29 02:15:21 UTC
Added new option, src_dir, to allow specifying a directory to look for publican sources in. Since it seemed redundant to also specify the cfg file it looks for the cfg file relative to the source directory. The main reason for the config_file parameter is it allows having multiple profiles for books, i.e. sharing a book between different versions or products, so it makes sense to do it this way. $ grep tmp_dir /home/jfearn/publican/Users_Guide/publican.cfg tmp_dir: build $ cd /tmp $ publican build --formats=html --lang=en-US --src_dir=/home/jfearn/publican/Users_Guide ... $ firefox /tmp/build/en-US/html/index.html $ w00t Committed revision 2048 to trunk. Does this apply to brands as well? i.e. can I specify the location of the brand source directory somehow? Hi, I tried to verify this and failed: [publican-tester@fedora books]$ publican create --name=out-of-tree Processing file en-US/Author_Group.xml -> en-US/Author_Group.xml Processing file en-US/Book_Info.xml -> en-US/Book_Info.xml Processing file en-US/Chapter.xml -> en-US/Chapter.xml Processing file en-US/Preface.xml -> en-US/Preface.xml Processing file en-US/Revision_History.xml -> en-US/Revision_History.xml Processing file en-US/out-of-tree.xml -> en-US/out-of-tree.xml [publican-tester@fedora books]$ mkdir out-of-tree/_build [publican-tester@fedora books]$ cd out-of-tree/_build/ [publican-tester@fedora _build]$ publican build --config=../publican.cfg --formats=html --lang=en-US Can't locate required file: en-US/Book_Info.xml at /usr/bin/publican line 632 Out of tree builds need to test --src_dir not --config. Ok, I tried again: [publican-tester@fedora _build]$ cd ~/books/out-of-tree/_build/ [publican-tester@fedora _build]$ publican build --src_dir=.. --formats=html --lang=en-US ... Finished html And it worked. If this concludes testing of this feature, I'd verify this BZ. BTW, the "--src_dir" option seems to be missing from the User Guide. Should it be added there (I found brief description of it in the man page) ? Documentation required for --src_dir option. Added this ticket to the Publican User Guide 3.0 ticket for tracking. |