aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-26 17:27:10 -0500
committerJack Nagel2014-03-26 17:38:24 -0500
commit21a3ec97269fd4c782606365e399c8ba951eaefd (patch)
tree6f3c034851ca2f5184a2fdedb63a8d88c99ce397 /Library
parent02a563dc98d1a9bc251154d1a14bb4a4da21e523 (diff)
downloadhomebrew-21a3ec97269fd4c782606365e399c8ba951eaefd.tar.bz2
android-sdk: use install_symlink
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/android-sdk.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Formula/android-sdk.rb b/Library/Formula/android-sdk.rb
index 8f0510847..f8e77ea11 100644
--- a/Library/Formula/android-sdk.rb
+++ b/Library/Formula/android-sdk.rb
@@ -35,10 +35,9 @@ class AndroidSdk < Formula
# this is data that should be preserved across upgrades, but the Android
# SDK isn't too smart, so we still have to symlink it back into its tree.
%w[platforms samples temp add-ons sources system-images extras].each do |d|
- dst = prefix/d
- src = var/'lib/android-sdk'/d
- src.mkpath unless src.directory?
- dst.make_relative_symlink src
+ src = var/"lib/android-sdk"/d
+ src.mkpath
+ prefix.install_symlink src
end
%w[adb fastboot].each do |platform_tool|