aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBradley M. Froehle2011-07-25 20:45:02 -0700
committerAdam Vandenberg2011-07-29 08:25:41 -0700
commitb731fbb206968f602f26af68014514ba076b2cda (patch)
treee7dd5783a9fdd7753669bd3d5c2f9fc055eacc6e /Library/Formula
parent523bf63340b155c1612da561c67db027e1ac2d52 (diff)
downloadhomebrew-b731fbb206968f602f26af68014514ba076b2cda.tar.bz2
android-sdk: make adb command executable
Note that this is an adb wrapper that tells the user to use the correct adb executable. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/android-sdk.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/android-sdk.rb b/Library/Formula/android-sdk.rb
index df84de03f..20ae70ab9 100644
--- a/Library/Formula/android-sdk.rb
+++ b/Library/Formula/android-sdk.rb
@@ -35,12 +35,13 @@ class AndroidSdk < Formula
dst.make_relative_symlink src
end
- (bin/:adb).write <<-EOS.undent
+ (bin+'adb').write <<-EOS.undent
#!/bin/sh
ADB="#{prefix}/platform-tools/adb"
test -f "$ADB" && exec "$ADB" "$@"
echo Use the \\`android\\' tool to install adb.
EOS
+ (bin+'adb').chmod 0755
end
def caveats; <<-EOS.undent