aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-kotlin-build-file.sh')
-rwxr-xr-xscripts/gen-kotlin-build-file.sh9
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
19if [[ -z "$1" ]]; then 19if [[ -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
22fi 22fi
23 23
@@ -27,8 +27,9 @@ if [[ $1 == "-classpath" ]]; then
27fi; 27fi;
28 28
29classpath=$1 29classpath=$1
30out_dir=$2 30name=$2
31shift 2 31out_dir=$3
32shift 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
47echo "<modules><module name=\"name\" type=\"java-production\" outputDir=\"${out_dir}\">" 48echo "<modules><module name=\"${name}\" type=\"java-production\" outputDir=\"${out_dir}\">"
48 49
49# Print classpath entries 50# Print classpath entries
50for file in $(echo "$classpath" | tr ":" "\n"); do 51for file in $(echo "$classpath" | tr ":" "\n"); do