From 99fd66137c91150b5b1b690eeb915837a3536f56 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Mon, 12 Feb 2018 14:32:05 +0300 Subject: [PATCH] Update the instruction how to run the stdlib generator Use relative paths in urls --- libraries/stdlib/ReadMe.md | 4 ++-- libraries/tools/kotlin-stdlib-gen/ReadMe.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/stdlib/ReadMe.md b/libraries/stdlib/ReadMe.md index 2e590ae3733..12f6d37c551 100644 --- a/libraries/stdlib/ReadMe.md +++ b/libraries/stdlib/ReadMe.md @@ -8,13 +8,13 @@ We use some code generation to generate the various utility extension function f These sources are placed into `generated` folder and their names are prefixed with the underscore, for example `generated/_Collections.kt` -To run the code generator from the `libraries` directory of a kotlin checkout, use the following command: +To run the code generator use the following command in the root directory of the project: ./gradlew :tools:kotlin-stdlib-gen:run > Note: on Windows type `gradlew` without the leading `./` -This then runs the script which generates a significant part of stdlib sources from the [templates](https://github.com/JetBrains/kotlin/tree/master/libraries/tools/kotlin-stdlib-gen/src/templates) authored with a special kotlin based DSL. +This then runs the script which generates a significant part of stdlib sources from the [templates](../tools/kotlin-stdlib-gen/src/templates) authored with a special kotlin based DSL. ### Usage samples diff --git a/libraries/tools/kotlin-stdlib-gen/ReadMe.md b/libraries/tools/kotlin-stdlib-gen/ReadMe.md index efe2c74f5ec..67ac6c927e9 100644 --- a/libraries/tools/kotlin-stdlib-gen/ReadMe.md +++ b/libraries/tools/kotlin-stdlib-gen/ReadMe.md @@ -3,10 +3,10 @@ Some of the code in the standard library is created by code generation based on templates. For example, many `Array` methods need to be implemented separately for `Array`, `ByteArray`, `ShortArray`, `IntArray`, etc. -To run the code generator from the `libraries` directory of a kotlin checkout, use the following command: +To run the code generator use the following command in the root directory of the project: ./gradlew :tools:kotlin-stdlib-gen:run > Note: on Windows type `gradlew` without the leading `./` -This then runs the script which generates a significant part of stdlib sources from the [templates](https://github.com/JetBrains/kotlin/tree/master/libraries/tools/kotlin-stdlib-gen/src/templates) authored with a special kotlin based DSL. +This then runs the script which generates a significant part of stdlib sources from the [templates](src/templates) authored with a special kotlin based DSL.