Permalink
Browse files

Fixed the .odt conversion targets.

  • Loading branch information...
1 parent 9d1e277 commit ddc7690f122a8b427f631c177e521c462959ea37 @sez11a sez11a committed Oct 17, 2012
Showing with 10 additions and 10 deletions.
  1. +10 −10 build-common.xml
View
20 build-common.xml
@@ -237,18 +237,18 @@ directory to convert the userGuide into complete English markdown, html, odt, an
<target name="markdown-to-odt" depends="add-markdown-metadata" description="converts markdown file to an odt file">
<echo message="... converting ${doc.dir} (${lang}) to odt"/>
<!-- pandoc -f markdown -t odt -o test-guide.odt test-guide.markdown -->
- <exec executable="${pandoc.app}">
+ <exec executable="${pandoc.app}" dir="${build.dir}/${lang}">
<arg value="-f" />
<arg value="markdown"/>
<arg value="-t"/>
<arg value="odt"/>
- <!--<arg value="+RTS"/>
+ <arg value="+RTS"/>
<arg value="-K64m"/>
<arg value="-RTS"/>
- <arg value="-smart"/>-->
+ <arg value="-smart"/>
<arg value="-o"/>
- <arg value="${build.dir}/${lang}/${lang}-${doc.dir}.odt"/>
- <arg value="${build.dir}/${lang}/${lang}-${doc.dir}.markdown"/>
+ <arg value="./${lang}-${doc.dir}.odt"/>
+ <arg value="./${lang}-${doc.dir}.markdown"/>
</exec>
</target>
@@ -369,18 +369,18 @@ directory to convert the userGuide into complete English markdown, html, odt, an
<target name="chapter-to-odt" depends="copy-single-chapter" description="converts single markdown chapter to an odt file">
<echo message="... converting ${chapter} (${lang}) to odt"/>
<!-- pandoc -f markdown -t odt -o 01-introduction-to-liferay-ui.odt 01-introduction-to-liferay-ui.markdown -->
- <exec executable="${pandoc.app}">
+ <exec executable="${pandoc.app}" dir="${build.dir}/${lang}">
<arg value="-f" />
<arg value="markdown"/>
<arg value="-t"/>
<arg value="odt"/>
- <!--<arg value="+RTS"/>
+ <arg value="+RTS"/>
<arg value="-K64m"/>
<arg value="-RTS"/>
- <arg value="-smart"/>-->
+ <arg value="-smart"/>
<arg value="-o"/>
- <arg value="${build.dir}/${lang}/${lang}-${chapter}.odt"/>
- <arg value="${build.dir}/${lang}/${lang}-${chapter}.markdown"/>
+ <arg value="./${lang}-${chapter}.odt"/>
+ <arg value="./${lang}-${chapter}.markdown"/>
</exec>
</target>

0 comments on commit ddc7690

Please sign in to comment.