Skip to content

Commit

Permalink
include trang jar file on distro, and change scripts accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianrahtz committed Dec 1, 2013
1 parent 4de4d0d commit 69c1dd5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Binary file added lib/trang.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion rnc/build-to.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<java classname="com.thaiopensource.relaxng.translate.Driver" fork="no">
<classpath>
<path refid="classpath"/>
<pathelement location="${oxygenlib}/trang.jar"/>
<pathelement location="${trang.jar}"/>
</classpath>
<!-- Even though the output type is inferred from the output file extension,
make sure it's the right one. -->
Expand Down
4 changes: 4 additions & 0 deletions transformtei
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ fi
echo
echo " Options, shown with defaults:"
echo " --saxonjar=$SAXONJAR # location of Saxon jar file"
echo " --trangjar=$TRANGJAR # location of trang jar file"
if [ $script = "teitoepub" ]
then
echo " --mediaoverlay # create media overlays from timeline data "
Expand Down Expand Up @@ -101,6 +102,7 @@ schema=
# ---
version=`cat $APPHOME/VERSION`
SAXONJAR=/usr/share/saxon/saxon9he.jar
TRANGJAR=$APPHOME/lib/trang.jar
from=`echo $script | sed 's/to.*//'`
to=`echo $script | sed 's/.*to//'`
if [ $to = "tei" ]
Expand Down Expand Up @@ -131,6 +133,7 @@ while test $# -gt 0; do
--apphome=*) APPHOME=`echo $1 | sed 's/.*=//'`;;
--publisher=*) publisher=`echo $1 | sed 's/.*=//'`;;
--saxonjar=*) SAXONJAR=`echo $1 | sed 's/.*=//'`;;
--trangjar=*) TRANGJAR=`echo $1 | sed 's/.*=//'`;;
--splitLevel=*) splitLevel="-DsplitLevel=`echo $1 | sed 's/.*=//'`";;
--subject=*) subject="`echo $1 | sed 's/.*=//'`";;
--uid=*) uid=`echo $1 | sed 's/.*=//'`;;
Expand Down Expand Up @@ -215,6 +218,7 @@ ant $antflag -f $APPHOME/$format/build-$direction.xml \
$fileperpage $cssFile $splitLevel $viewportwidth $viewportheight $summaryDoc $mediaoverlay $nocompress $localsource \
-Dodd=$odd \
-Dsaxon.jar=${SAXONJAR} \
-Dtrang.jar=${TRANGJAR} \
-Dverbose=$verbose \
-DinputFile="$indir/$infile" \
-DoutputFile="$outdir/$outfile" \
Expand Down
2 changes: 1 addition & 1 deletion xsd/build-to.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<java classname="com.thaiopensource.relaxng.translate.Driver" fork="no">
<classpath>
<path refid="classpath"/>
<pathelement location="${oxygenlib}/trang.jar"/>
<pathelement location="${trang.jar}"/>
</classpath>
<!-- Even though the output type is inferred from the output file extension,
make sure it's the right one. -->
Expand Down

0 comments on commit 69c1dd5

Please sign in to comment.