From 3189d1d8bcc013182166a9b6895f03b3a2a2e5c2 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Tue, 21 Mar 2017 19:19:08 +0300 Subject: [PATCH] Two aliases for konanc: kotlinc, kotlinc-native. --- build.gradle | 4 ---- cmd/kotlinc | 20 ++++++++++++++++++++ cmd/kotlinc-native | 20 ++++++++++++++++++++ 3 files changed, 40 insertions(+), 4 deletions(-) create mode 100755 cmd/kotlinc create mode 100755 cmd/kotlinc-native 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 "$@"