102 lines
6.4 KiB
Bash
102 lines
6.4 KiB
Bash
|
#!/bin/sh
|
||
|
# Generated file, do not edit manually"
|
||
|
echo "NOTE: The startcmd.sh has been deprecated, use the 'dita' command instead."
|
||
|
|
||
|
realpath() {
|
||
|
case $1 in
|
||
|
/*) echo "$1" ;;
|
||
|
*) echo "$PWD/${1#./}" ;;
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
if [ "${DITA_HOME:+1}" = "1" ] && [ -e "$DITA_HOME" ]; then
|
||
|
export DITA_DIR="$(realpath "$DITA_HOME")"
|
||
|
else #elif [ "${DITA_HOME:+1}" != "1" ]; then
|
||
|
export DITA_DIR="$(dirname "$(realpath "$0")")"
|
||
|
fi
|
||
|
|
||
|
if [ -f "$DITA_DIR"/bin/ant ] && [ ! -x "$DITA_DIR"/bin/ant ]; then
|
||
|
chmod +x "$DITA_DIR"/bin/ant
|
||
|
fi
|
||
|
|
||
|
export ANT_OPTS="-Xmx512m $ANT_OPTS"
|
||
|
export ANT_OPTS="$ANT_OPTS -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl"
|
||
|
export ANT_HOME="$DITA_DIR"
|
||
|
export PATH="$DITA_DIR"/bin:"$PATH"
|
||
|
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/Saxon-HE-9.9.1-7.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/ant-apache-resolver-1.10.9.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/ant-launcher.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/ant.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/commons-io-2.8.0.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/dost-configuration.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/dost.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/guava-25.1-jre.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/icu4j-61.1.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/isorelax-20030108.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/jackson-annotations-2.11.0.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/jackson-core-2.11.0.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/jackson-databind-2.11.0.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/jackson-dataformat-yaml-2.11.0.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/jing-20181222.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/logback-classic-1.2.3.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/logback-core-1.2.3.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/slf4j-api-1.7.25.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/snakeyaml-1.26.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/xercesImpl-2.12.0.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/xml-apis-1.4.01.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/lib/xml-resolver-1.2.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.eclipsehelp/lib/eclipsehelp.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.htmlhelp/lib/htmlhelp.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.index/lib/index.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2/lib/fo.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.axf/lib/axf.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.fop/lib/batik-all-1.13.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.fop/lib/fontbox-2.0.21.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.fop/lib/fop-2.5.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.fop/lib/fop-pdf-images-2.5.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.fop/lib/jcl-over-slf4j-1.7.30.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.fop/lib/xml-apis-ext-1.3.04.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.fop/lib/pdfbox-2.0.21.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.fop/lib/slf4j-api-1.7.30.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.fop/lib/xmlgraphics-commons-2.4.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.dita.pdf2.xep/lib/xep.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/org.lwdita-2.4.0.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/htmlparser-1.4.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-profile-pegdown-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-abbreviation-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-anchorlink-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-aside-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-autolink-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-definition-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-html-parser-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-escaped-character-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-footnotes-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-jira-converter-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-youtrack-converter-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-gfm-strikethrough-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-gfm-tables-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-gfm-tasklist-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-jekyll-front-matter-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-jekyll-tag-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-ins-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-superscript-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-tables-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-toc-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-typographic-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-wikilink-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-ext-yaml-front-matter-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-formatter-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/flexmark-util-0.50.18.jar:$NEW_CLASSPATH"
|
||
|
NEW_CLASSPATH="$DITA_DIR/plugins/org.lwdita/lib/autolink-0.6.0.jar:$NEW_CLASSPATH"
|
||
|
if test -n "$CLASSPATH"; then
|
||
|
export CLASSPATH="$NEW_CLASSPATH":"$CLASSPATH"
|
||
|
else
|
||
|
export CLASSPATH="$NEW_CLASSPATH"
|
||
|
fi
|
||
|
|
||
|
cd "$DITA_DIR"
|
||
|
"$SHELL"
|