-
Notifications
You must be signed in to change notification settings - Fork 1
/
reference.sh
executable file
·69 lines (34 loc) · 1.22 KB
/
reference.sh
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
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
PROJ_DIR=`pwd`
cd $DITA_HOME
# Get the absolute path of DITAOT's home directory
DITA_DIR="`pwd`"
export ANT_OPTS="-Xmx512m $ANT_OPTS"
export ANT_HOME="$DITA_DIR"/tools/ant
export PATH="$DITA_DIR"/tools/ant/bin:"$PATH"
NEW_CLASSPATH="$DITA_DIR/lib:$DITA_DIR/lib/dost.jar:$DITA_DIR/lib/resolver.jar:$DITA_DIR/lib/fop.jar:$DITA_DIR/lib/avalon-framework-cvs-20020806.jar:$DITA_DIR/lib/batik.jar:$DITA_DIR/lib/xalan.jar:$DITA_DIR/lib/xercersImpl.jar:$DITA_DIR/lib/xml-apis.jar:$DITA_DIR/lib/icu4j.jar"
if test -n "$CLASSPATH"
then
export CLASSPATH="$NEW_CLASSPATH":"$CLASSPATH"
else
export CLASSPATH="$NEW_CLASSPATH"
fi
# Render the deliverable
ant -Ddita.dir=$DITA_DIR -Dproject.dir=$PROJ_DIR -f $PROJ_DIR/build/agavireference_xhtml.xml -logger org.dita.dost.log.DITAOTBuildLogger $1
exit 1
# Copy javascript
cp $PROJ_DIR/shjs/* $PROJ_DIR/html-out/topics
# Copy images
echo "Copying images"
mkdir -p $PROJ_DIR/html-out/topics/images
cp $PROJ_DIR/svg/*.png $PROJ_DIR/html-out/topics/images
# Create the stage tarballs
mkdir $PROJ_DIR/html-out/stages
cd $PROJ_DIR/stages
for i in *
do
tar czf $PROJ_DIR/html-out/stages/$i.tgz $i
done
cd $PROJ_DIR
rm -rf agavi-tutorial.tgz
tar czf agavi-tutorial.tgz html-out/