diff options
| author | Will Ross | 2012-10-18 11:04:21 -0400 |
|---|---|---|
| committer | Max Howell | 2012-11-01 10:05:24 -0400 |
| commit | 1d90e9d335ab488b2aa254e326f4055e8db6bfbe (patch) | |
| tree | 6617d4c5ec9b1493d65b5a46e4857cf661c0e7bc /Library | |
| parent | f979e31f5d78b3af9e3c9bb663114891855be552 (diff) | |
| download | homebrew-1d90e9d335ab488b2aa254e326f4055e8db6bfbe.tar.bz2 | |
Install the adb bash completion script
Closes #15532.
Signed-off-by: Max Howell <mxcl@me.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/android-sdk.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/android-sdk.rb b/Library/Formula/android-sdk.rb index a77248c26..8c8db35bd 100644 --- a/Library/Formula/android-sdk.rb +++ b/Library/Formula/android-sdk.rb @@ -1,5 +1,11 @@ require 'formula' +class AdbBashCompletion < Formula + url 'https://raw.github.com/CyanogenMod/android_sdk/3bf0a01ef66a9b99149ba3faaf34a1362581dd01/bash_completion/adb.bash' + sha1 '8e7dad45b8c98c359516d4a818a9090125bc6f7a' + version 'cyanogenmod_jellybean' +end + class AndroidSdk < Formula homepage 'http://developer.android.com/index.html' url 'http://dl.google.com/android/android-sdk_r20.0.3-macosx.zip' @@ -45,6 +51,10 @@ class AndroidSdk < Formula echo Use the \\`android\\' tool to install the \\"Android SDK Platform-tools\\". EOS end + + AdbBashCompletion.new.brew do + (prefix+'etc/bash_completion.d').install 'adb.bash' => 'adb-completion.bash' + end end def caveats; <<-EOS.undent |
