diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2015-04-14 19:22:56 +0800 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2015-04-14 19:22:56 +0800 |
commit | c42455af4f0cf3502f16b2d017cd98df038f83e8 (patch) | |
tree | ce3dfc506ae59ea801f06790d64849e608c90757 /jjb/octopus/build-docu.sh | |
parent | 8b31cdbcedfd0390401753dc5496112046db82ce (diff) |
JIRA: DOCS-6 - Add a build shell and a JJB for Octopus project
This job will be used to build documents
Change-Id: If4f1e2853b8bce48145a842488bed01ac9b93ab0
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'jjb/octopus/build-docu.sh')
-rw-r--r-- | jjb/octopus/build-docu.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/jjb/octopus/build-docu.sh b/jjb/octopus/build-docu.sh new file mode 100644 index 000000000..cbbf265d3 --- /dev/null +++ b/jjb/octopus/build-docu.sh @@ -0,0 +1,11 @@ +#!/bin/bash +for file in $(find . -type f -iname '*.rst'); do + file_cut="${{file%.*}}" + html_file=$file_cut".html" + pdf_file=$file_cut".pdf" + rst2html $file > $html_file + rst2pdf $file -o $pdf_file +done +v +v + |