fix doc-build.sh to support referring to other dirs 59/4659/2
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Wed, 16 Dec 2015 13:30:44 +0000 (22:30 +0900)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Thu, 17 Dec 2015 14:31:31 +0000 (23:31 +0900)
commite83087994e3e1375668361f754640422c059243e
treeccce565e63261b2a429457cb1094bbd939597bc2
parent24032643293d5e92d095ea39957f8fd0aff29290
fix doc-build.sh to support referring to other dirs

In [1], we found that current doc-build.sh cannot create document
when the main index.rst referring to rst file in another folder.
The reason is current script only copies target src folder under the
working directory.

This patch fix this bug by making doc-build.sh to copy all src files
in the original directory structure. Then, all file links (import)
can work properly.

Error message for '_sha1_' is modified to drop directory info, but
developer can find a bad file path from grep output.

[1] https://gerrit.opnfv.org/gerrit/#/c/4353

Change-Id: I1d840b8a887306539f97321570f289ac25055a88
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
utils/docs-build.sh