aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-11 11:58:03 -0800
committerAdam Vandenberg2012-02-11 11:58:22 -0800
commit753616d239fbea4ef7929b8bbc3828eea8025417 (patch)
treee24d6ceae27dd50409eca2ca74b97313e973dc0c /Library/Formula
parent6a38d82578026c3d2d1ac243e1c6fc07e955032f (diff)
downloadhomebrew-753616d239fbea4ef7929b8bbc3828eea8025417.tar.bz2
adobe-air-sdk: fix quoting
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/adobe-air-sdk.rb13
1 files changed, 5 insertions, 8 deletions
diff --git a/Library/Formula/adobe-air-sdk.rb b/Library/Formula/adobe-air-sdk.rb
index 4e5890a5c..53c7bab1e 100644
--- a/Library/Formula/adobe-air-sdk.rb
+++ b/Library/Formula/adobe-air-sdk.rb
@@ -1,24 +1,21 @@
require 'formula'
class AdobeAirSdk < Formula
- url 'http://airdownload.adobe.com/air/mac/download/3.1/AdobeAIRSDK.tbz2'
homepage 'http://www.adobe.com/products/air/sdk/'
+ url 'http://airdownload.adobe.com/air/mac/download/3.1/AdobeAIRSDK.tbz2'
md5 'f2137a34888ce71574da87e0cc3b7b06'
version '3.1'
def startup_script name
- <<-EOS.undent
+ (bin+name).write <<-EOS.undent
#!/bin/bash
- exec #{libexec}/bin/#{name} $@
+ exec "#{libexec}/bin/#{name}" "$@"
EOS
end
def install
libexec.install Dir['*']
-
- bin.mkpath
- %w[adl adt].each do |tool|
- (bin+tool).write startup_script(tool)
- end
+ startup_script("adl")
+ startup_script("adt")
end
end