Soft Patch Panel
 help / color / mirror / Atom feed
From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH v2 13/13] docs: ensure PDF images are exist for latex
Date: Wed, 26 Sep 2018 18:08:41 +0900	[thread overview]
Message-ID: <1537952921-20397-14-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <1537952921-20397-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp>

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

Compiling PDF documenation requires that embedded image is also PDF
format. `make doc-pdf` launchs `inkscape` for generating PDF images
before compilation. However, it is possiblly started to compile before
PDF image is generated.

This patch is to ensure PDF image is generated before.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 docs/guides/gen_pdf_imgs.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/guides/gen_pdf_imgs.py b/docs/guides/gen_pdf_imgs.py
index 4459316..2caf583 100644
--- a/docs/guides/gen_pdf_imgs.py
+++ b/docs/guides/gen_pdf_imgs.py
@@ -45,6 +45,10 @@ def main():
                 print(cmd)
                 subprocess.call(cmd, shell=True)
 
+    # Ensure PDF img is generated.
+    while os.path.exists(pdf_fpath) == False:
+        pass
+
 
 if __name__ == "__main__":
     main()
-- 
2.7.4

      parent reply	other threads:[~2018-09-26  9:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-26  9:08 [spp] [PATCH v2 00/13] PDF documentation support ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 01/13] docs: move SPP VF images ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 02/13] docs: resize figures of SPP VF ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 03/13] docs: resize figures of SPP ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 04/13] docs: resize figures of SPP container ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 05/13] docs: add script for generating PDF images ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 06/13] project: update gitignore to exclude PDF files ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 07/13] docs: add sphinx config to PDF ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 08/13] makefile: add make option to compile PDF doc ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 09/13] makefile: fix bug of PDF compilation ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 10/13] docs: refactor for character length ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 11/13] docs: fix typo of label ogawa.yasufumi
2018-09-26  9:08 ` [spp] [PATCH v2 12/13] docs: remove unicode characters ogawa.yasufumi
2018-09-26  9:08 ` ogawa.yasufumi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1537952921-20397-14-git-send-email-ogawa.yasufumi@lab.ntt.co.jp \
    --to=ogawa.yasufumi@lab.ntt.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).