diff options
| author | Evan Charlton <evanc@google.com> | 2014-05-20 10:55:54 -0700 |
|---|---|---|
| committer | Evan Charlton <evanc@google.com> | 2014-05-20 10:55:54 -0700 |
| commit | ffa8245e668bd80ef7fef26c761e9034714e3f87 (patch) | |
| tree | 336a612cb47c6224e1ad2a8cbb3c4c5777533ad7 /tools | |
| parent | 6ccc20a0aa4b37abff2c03ea0237cdcc461eff72 (diff) | |
Add support for OSX to intellij-gen.sh
Remove the hardcoded "linux-x86" path, and add support for darwin-x86.
Change-Id: I4c5db4683a6e8aac7d894e64415142d2ca5954a2
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/idegen/intellij-gen.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/idegen/intellij-gen.sh b/tools/idegen/intellij-gen.sh index 860bd3c67..3c4efc56f 100755 --- a/tools/idegen/intellij-gen.sh +++ b/tools/idegen/intellij-gen.sh @@ -54,7 +54,11 @@ index_file=$root_dir/module-index.txt idegenjar=$script_dir/idegen.jar if [ ! -e $idegenjar ]; then # See if the jar is in the build directory. - idegenjar=$root_dir/out/host/linux-x86/framework/idegen.jar + platform="linux" + if [ "Darwin" = "$(uname)" ]; then + platform="darwin" + fi + idegenjar="$root_dir/out/host/$platform-x86/framework/idegen.jar" fi if [ ! -e "$index_file" ]; then |
