diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-01-13 02:08:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-13 02:08:22 +0000 |
commit | bd27b64246a9ec348d5f584a2eb983fc5ca711fa (patch) | |
tree | 1e23f19849ee9ef36f30e0d7a0b40eaad5e2edf8 /utils/docs-build.sh | |
parent | 122068df87a3d8dd2200bdf5e117abb3491d1738 (diff) | |
parent | 0a2341e70bcf75105e6266f09f19dbe2704b7b4b (diff) |
Merge "docs: fix ODT document creation"
Diffstat (limited to 'utils/docs-build.sh')
-rwxr-xr-x | utils/docs-build.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/docs-build.sh b/utils/docs-build.sh index 55cb9f652..7c444e3d8 100755 --- a/utils/docs-build.sh +++ b/utils/docs-build.sh @@ -182,9 +182,14 @@ do # TODO: failures in ODT creation should be handled error and # cause 'exit 1' before OPNFV B release. tex=$(find $build -name '*.tex' | head -1) - odt=$(basename "${tex%.tex}.odt") + odt="${tex%.tex}.odt" if [[ -e $tex ]] && which pandoc > /dev/null ; then - pandoc $tex -o $output/$odt || { + ( + cd $(dirname $tex) + pandoc $(basename $tex) -o $(basename $odt) + ) && { + mv $odt $output/ + }|| { msg="Error: ODT creation for $dir has failed." echo echo "$msg" |