PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/build.sh

http://transcriptstudio4isha.googlecode.com/
Shell | 33 lines | 20 code | 11 blank | 2 comment | 4 complexity | caeb3cc341347930d111b5626aea6667 MD5 | raw file
 1#!/bin/bash
 2
 3# will be set by the installer
 4if [ -z "$EXIST_HOME" ]; then
 5	EXIST_HOME="/usr/lib/exist"
 6fi
 7
 8if [ -z "$JAVA_HOME" ]; then
 9    JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.11"
10fi
11
12if [ ! -d "$JAVA_HOME" ]; then
13    JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.11/jre"
14fi
15
16if [ -z "$FLEX_HOME" ]; then
17    FLEX_HOME="/usr/lib/Adobe_Flex_Builder/sdks/3.3.0"
18fi
19
20JAVA_CMD="$JAVA_HOME/bin/java"
21
22ANT_HOME="$EXIST_HOME/tools/ant"
23
24LOCALCLASSPATH=$CLASSPATH:$ANT_HOME/lib/ant-launcher.jar:$ANT_HOME/lib/junit-4.4.jar
25
26JAVA_ENDORSED_DIRS="$EXIST_HOME"/lib/endorsed
27
28JAVA_OPTS="-DFLEX_HOME=$FLEX_HOME -Dant.home=$ANT_HOME -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -Dexist.home=$EXIST_HOME"
29
30echo Starting Ant...
31echo
32
33$JAVA_HOME/bin/java -Xms64m -Xmx512m $JAVA_OPTS -classpath $LOCALCLASSPATH org.apache.tools.ant.launch.Launcher $*