My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash

DITAFILE=$1
OUTPUTDIR=$2
TMPDIR=${OUTPUTDIR}.tmp

if [ "$DITA_HOME" = "" ]
then
echo "DITA_HOME must be set to DITA installation directory"
exit 255
fi

if [ "$DITAFILE" = "" ] || [ "$OUTPUTDIR" = "" ]
then
echo "Please provide a DITA file and an output directory"
exit 255
fi

# clean outputdir
if ! test -d $OUTPUTDIR
then
mkdir -p $OUTPUTDIR
else
rm -fr $OUTPUTDIR/*
fi
if ! test -d $TMPDIR
then
mkdir $TMPDIR
else
rm -fr $TMPDIR/*
fi

# -Duser.csspath.url= ---> don't copy css files
cmd="ant -Dargs.transtype=xhtml -Duser.csspath.url= -Doutput.dir=$OUTPUTDIR -Dargs.input=$DITAFILE -Dargs.logdir=$TMPDIR -Ddita.temp.dir=$TMPDIR -Dargs.target=init -f $DITA_HOME/build.xml dita2xhtml"
echo $cmd
$cmd

Change log

r1418 by sebastien.lelong on Oct 25, 2009   Diff
minor improvements...
Go to: 
Project members, sign in to write a code review

Older revisions

r1407 by sebastien.lelong on Oct 22, 2009   Diff
JAPP: publisher, config, glue-the-
whole script
r1403 by sebastien.lelong on Oct 21, 2009   Diff
dita2html wrapper + script to prepare
HTML content for Drupal
All revisions of this file

File info

Size: 749 bytes, 36 lines

File properties

svn:executable
*
Powered by Google Project Hosting