You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2014/01/07 17:15:57 UTC

svn commit: r1556259 - /uima/sandbox/uima-ducc/trunk/uima-ducc-duccdocs/pom.xml

Author: cwiklik
Date: Tue Jan  7 16:15:57 2014
New Revision: 1556259

URL: http://svn.apache.org/r1556259
Log:
UIMA-3523 replicated code from build-duccdocs profile in the release profile

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-duccdocs/pom.xml

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-duccdocs/pom.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-duccdocs/pom.xml?rev=1556259&r1=1556258&r2=1556259&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-duccdocs/pom.xml (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-duccdocs/pom.xml Tue Jan  7 16:15:57 2014
@@ -214,9 +214,12 @@
                 <configuration>
                   <target>
 
+
                     <echo message="Building duccbook HTML" />
                     <mkdir dir="target/site/duccbook-html" />
                     <mkdir dir="target/site/duccbook-html/images" />
+                    <mkdir dir="target/site/duccbook-install" />
+
                     <exec executable="htlatex" dir="src/site/tex/duccbook">
                       <arg value="duccbook.tex" />
                     </exec>
@@ -242,11 +245,11 @@
                     <echo message="Completed duccbook HTML" />
 
                     <echo message="Building duccbook Installation HTML" />
-                    <mkdir dir="target/site/ducc-install-html" />
+                    <mkdir dir="target/site/duccbook-html" />
                     <exec executable="htlatex" dir="src/site/tex/duccbook" failonerror="true">
                       <arg value="installation.tex" />
                     </exec>
-                    <move todir="target/site/ducc-install-html" overwrite="true">
+                    <move todir="target/site/duccbook-html" overwrite="true">
                       <fileset dir="src/site/tex/duccbook">
                         <include name="installation.html" />
                         <include name="installation.css" />
@@ -265,20 +268,44 @@
 
                     <echo message="Building duccbook Installation PDF" />
                     <mkdir dir="target/site/duccbook-pdf" />
-                    <exec executable="pdflatex" dir="src/site/tex/duccbook">
+                    <exec executable="pdflatex" dir="src/site/tex/duccbook" failonerror="true">
                       <arg value="-output-directory=../../../../target/site/duccbook-pdf" />
+                      <arg value="-interaction=errorstopmode" />
                       <arg value="installation.tex" />
                     </exec>
 
-
                     <!-- must be run twice to correctly gen the xrefs, TOC, etc. -->
                     <!-- htlatex by default runs enough to get xrefs and TOC -->
                     <exec executable="pdflatex" dir="src/site/tex/duccbook">
                       <arg value="-output-directory=../../../../target/site/duccbook-pdf" />
                       <arg value="installation.tex" />
                     </exec>
+
+                    <echo message="Completed duccbook Installation PDF" />
+
+                    <exec executable="latex" dir="src/site/tex/duccbook">
+                      <arg value="-output-directory=../../../../target/site/duccbook-install" />
+                      <arg value="installation.tex" />
+                    </exec>
+                    <delete file="target/site/duccbook-pdf/installation.aux" />
+                    <delete file="target/site/duccbook-pdf/installation.log" />
+                    <delete file="target/site/duccbook-pdf/installation.out" />
                     <echo message="Completed duccbook Installation PDF" />
 
+                    <!-- must be run twice to correctly gen the xrefs, TOC, etc. -->
+                    <!-- htlatex by default runs enough to get xrefs and TOC -->
+                    <exec executable="dvi2tty" dir="target/site/duccbook-install" >
+                      <arg value="-oINSTALL" />
+                      <arg value="-w132" />
+                      <arg value="-l" />
+                      <arg value="installation.dvi" />
+                    </exec>
+                    <delete file="target/site/duccbook-install/installation.aux" />
+                    <delete file="target/site/duccbook-install/installation.log" />
+                    <delete file="target/site/duccbook-install/installation.out" />
+                    <delete file="target/site/duccbook-install/installation.dvi" />
+                    <echo message="Completed duccbook Installation Text file as INSTALL" />
+
 
                     <echo message="Building duccbook PDF" />
                     <mkdir dir="target/site/duccbook-pdf" />