Skip to content

Commit

Permalink
Install the adb bash completion script
Browse files Browse the repository at this point in the history
Closes Homebrew#15532.

Signed-off-by: Max Howell <mxcl@me.com>
  • Loading branch information
paxswill authored and mxcl committed Nov 1, 2012
1 parent f979e31 commit 1d90e9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 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'
Expand Down Expand Up @@ -45,6 +51,10 @@ def install
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
Expand Down

0 comments on commit 1d90e9d

Please sign in to comment.