diff --git a/build.gradle b/build.gradle index ac610c60189..a3cf4364801 100644 --- a/build.gradle +++ b/build.gradle @@ -147,12 +147,8 @@ task dist_compiler(type: Copy) { from(file('cmd')) { fileMode(0755) - include('konanc') - include('kotlinc-native') - include('interop') into('bin') } - from(project(':backend.native').file('konan.properties')) { into('konan') } diff --git a/cmd/kotlinc b/cmd/kotlinc new file mode 100755 index 00000000000..84a6cd7dbdc --- /dev/null +++ b/cmd/kotlinc @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# Copyright 2010-2015 JetBrains s.r.o. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +DIR="${BASH_SOURCE[0]%/*}" +: ${DIR:="."} + +"${DIR}"/konanc "$@" diff --git a/cmd/kotlinc-native b/cmd/kotlinc-native new file mode 100755 index 00000000000..84a6cd7dbdc --- /dev/null +++ b/cmd/kotlinc-native @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# Copyright 2010-2015 JetBrains s.r.o. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +DIR="${BASH_SOURCE[0]%/*}" +: ${DIR:="."} + +"${DIR}"/konanc "$@"