From 1e15b807810501bdc3a150c2164c77e705e122bc Mon Sep 17 00:00:00 2001 From: Leonid Shalupov Date: Fri, 4 May 2012 19:59:36 +0400 Subject: [PATCH] restored bin/kotlin --- bin/kotlin | 31 +++++++++++++++++++++++++++++++ bin/run-test | 7 +++++++ 2 files changed, 38 insertions(+) create mode 100644 bin/kotlin create mode 100644 bin/run-test diff --git a/bin/kotlin b/bin/kotlin new file mode 100644 index 00000000000..933ac6ed261 --- /dev/null +++ b/bin/kotlin @@ -0,0 +1,31 @@ +#!/bin/sh -e + +die() { + echo "$@" >&2 + exit 1 +} + +root=`cd $(dirname $0)/..; pwd` + +ideaRoot= +for d in $root/ideaSDK /Applications/Nika-*.app; do + if [ -d "$d/lib" ]; then + ideaRoot="$d" + break + fi +done + +test -n "$ideaRoot" || die "Idea root not found" + +classpath="$root/out/production/cli" +classpath="$classpath:$root/out/production/backend:$root/out/production/frontend:$root/out/production/frontend.java:$root/out/production/jet.as.java.psi:$root/out/production/util" +classpath="$classpath:$root/out/production/stdlib" +classpath="$classpath:$root/lib/*:$ideaRoot/lib/*:$ideaRoot/lib/rt/*" + +exec java $JAVA_OPTS \ + -ea \ + -classpath "$classpath" \ + org.jetbrains.jet.cli.jvm.K2JVMCompiler \ + "$@" + +# vim: set ts=4 sw=4 et: diff --git a/bin/run-test b/bin/run-test new file mode 100644 index 00000000000..397695f314a --- /dev/null +++ b/bin/run-test @@ -0,0 +1,7 @@ +#!/bin/sh -e + +cd $(dirname $0)/.. + +exec java -classpath 'dist/classes/tests:compiler/frontend/src:dist/classes/runtime:dist/classes/compiler:lib/*:ideaSDL/core/*:ideaSDK/lib/*' "$@" + +# vim: set ts=4 sw=4 et ft=sh: