diff options
Diffstat (limited to 'scripts/gen-kotlin-build-file.sh')
-rwxr-xr-x | scripts/gen-kotlin-build-file.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/gen-kotlin-build-file.sh b/scripts/gen-kotlin-build-file.sh index 1e03f72e..177ca1b0 100755 --- a/scripts/gen-kotlin-build-file.sh +++ b/scripts/gen-kotlin-build-file.sh | |||
@@ -17,7 +17,7 @@ | |||
17 | # Generates kotlinc module xml file to standard output based on rsp files | 17 | # Generates kotlinc module xml file to standard output based on rsp files |
18 | 18 | ||
19 | if [[ -z "$1" ]]; then | 19 | if [[ -z "$1" ]]; then |
20 | echo "usage: $0 <classpath> <outDir> <rspFiles>..." >&2 | 20 | echo "usage: $0 <classpath> <name> <outDir> <rspFiles>..." >&2 |
21 | exit 1 | 21 | exit 1 |
22 | fi | 22 | fi |
23 | 23 | ||
@@ -27,8 +27,9 @@ if [[ $1 == "-classpath" ]]; then | |||
27 | fi; | 27 | fi; |
28 | 28 | ||
29 | classpath=$1 | 29 | classpath=$1 |
30 | out_dir=$2 | 30 | name=$2 |
31 | shift 2 | 31 | out_dir=$3 |
32 | shift 3 | ||
32 | 33 | ||
33 | # Path in the build file may be relative to the build file, we need to make them | 34 | # Path in the build file may be relative to the build file, we need to make them |
34 | # absolute | 35 | # absolute |
@@ -44,7 +45,7 @@ get_abs_path () { | |||
44 | } | 45 | } |
45 | 46 | ||
46 | # Print preamble | 47 | # Print preamble |
47 | echo "<modules><module name=\"name\" type=\"java-production\" outputDir=\"${out_dir}\">" | 48 | echo "<modules><module name=\"${name}\" type=\"java-production\" outputDir=\"${out_dir}\">" |
48 | 49 | ||
49 | # Print classpath entries | 50 | # Print classpath entries |
50 | for file in $(echo "$classpath" | tr ":" "\n"); do | 51 | for file in $(echo "$classpath" | tr ":" "\n"); do |