VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/startcmd.sh@ 98661

Last change on this file since 98661 was 98584, checked in by vboxsync, 22 months ago

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1#!/bin/sh
2# This file is part of the DITA Open Toolkit project hosted on
3# Sourceforge.net. See the accompanying license.txt file for
4# applicable licenses.
5# (c) Copyright IBM Corp. 2006 All Rights Reserved.
6
7realpath() {
8 case $1 in
9 /*) echo "$1" ;;
10 *) echo "$PWD/${1#./}" ;;
11 esac
12}
13
14if [ "${DITA_HOME:+1}" = "1" ] && [ -e "$DITA_HOME" ]; then
15 export DITA_DIR="$(realpath "$DITA_HOME")"
16else #elif [ "${DITA_HOME:+1}" != "1" ]; then
17 export DITA_DIR="$(dirname "$(realpath "$0")")"
18fi
19
20if [ -f "$DITA_DIR"/tools/ant/bin/ant ] && [ ! -x "$DITA_DIR"/tools/ant/bin/ant ]; then
21 chmod +x "$DITA_DIR"/tools/ant/bin/ant
22fi
23
24export ANT_OPTS="-Xmx512m $ANT_OPTS"
25export ANT_OPTS="$ANT_OPTS -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl"
26export ANT_HOME="$DITA_DIR"/tools/ant
27export PATH="$DITA_DIR"/tools/ant/bin:"$PATH"
28
29NEW_CLASSPATH="$DITA_DIR/lib/dost.jar"
30NEW_CLASSPATH="$DITA_DIR/lib:$NEW_CLASSPATH"
31NEW_CLASSPATH="$DITA_DIR/lib/commons-codec-1.4.jar:$NEW_CLASSPATH"
32NEW_CLASSPATH="$DITA_DIR/lib/resolver.jar:$NEW_CLASSPATH"
33NEW_CLASSPATH="$DITA_DIR/lib/icu4j.jar:$NEW_CLASSPATH"
34NEW_CLASSPATH="$DITA_DIR/lib/xercesImpl.jar:$NEW_CLASSPATH"
35NEW_CLASSPATH="$DITA_DIR/lib/xml-apis.jar:$NEW_CLASSPATH"
36NEW_CLASSPATH="$DITA_DIR/lib/saxon/saxon9.jar:$NEW_CLASSPATH"
37NEW_CLASSPATH="$DITA_DIR/lib/saxon/saxon9-dom.jar:$NEW_CLASSPATH"
38if test -n "$CLASSPATH"; then
39 export CLASSPATH="$NEW_CLASSPATH":"$CLASSPATH"
40else
41 export CLASSPATH="$NEW_CLASSPATH"
42fi
43
44cd "$DITA_DIR"
45"$SHELL"
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette