Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dslc.in')
-rw-r--r--bin/dslc.in16
1 files changed, 15 insertions, 1 deletions
diff --git a/bin/dslc.in b/bin/dslc.in
index e9dac7c..226ba92 100644
--- a/bin/dslc.in
+++ b/bin/dslc.in
@@ -22,7 +22,21 @@
declare -r mypath=$( dirname "$( readlink -f "$0" )" )
declare -r dslc_jar="$mypath/../src/current/src/dslc.jar"
+# TODO: decouple from old rater/ directory
+rater-path()
+{
+ # use rater/ in cwd if available to maintain previous behavior
+ if [ -d "$(pwd)/rater" ]; then
+ echo "$(pwd)/rater"
+ return
+ fi
+
+ # otherwise use our own
+ echo "$mypath/../rater"
+}
+
CLASSPATH="$CLASSPATH:@DSLC_CLASSPATH@:$dslc_jar" \
"@JAVA@" @JAVA_OPTS@ \
- com.lovullo.dslc.DslCompiler
+ com.lovullo.dslc.DslCompiler \
+ "$( rater-path )"