diff options
| author | Adam Vandenberg | 2012-03-11 14:57:52 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-11 15:00:55 -0700 |
| commit | 40a3827ca1b71b21229ebf4e643f1e9dc4415544 (patch) | |
| tree | cb8853841149ac0c8d0096b8f59bda184bc1ac81 /Library/Formula/scalate.rb | |
| parent | c2d515c56d6575bd1af47ca303646e7ecc616e9b (diff) | |
| download | homebrew-40a3827ca1b71b21229ebf4e643f1e9dc4415544.tar.bz2 | |
scalate: fix quoting in wrapper script
Diffstat (limited to 'Library/Formula/scalate.rb')
| -rw-r--r-- | Library/Formula/scalate.rb | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/Library/Formula/scalate.rb b/Library/Formula/scalate.rb index dad435ee9..87f93d945 100644 --- a/Library/Formula/scalate.rb +++ b/Library/Formula/scalate.rb @@ -2,24 +2,22 @@ require 'formula' require 'find' class Scalate < Formula + homepage 'http://scalate.fusesource.org/' url 'http://repo.fusesource.com/nexus/content/repositories/public/org/fusesource/scalate/scalate-distro/1.5.3/scalate-distro-1.5.3-unix-bin.tar.gz' version '1.5.3' - homepage 'http://scalate.fusesource.org/' md5 '5114f611836957f479c1f2060b20beb3' - def startup_script - <<-EOS.undent + # This startup script for Scalate calls the real startup script installed + # to Homebrew's cellar. This avoids issues with local vs. absolute symlinks. + def startup_script; <<-EOS.undent #!/bin/bash - # This startup script for Scalate calls the real startup script installed - # to Homebrew's cellar. This avoids issues with local vs. absolute symlinks. - - #{libexec}/bin/scalate $* + "#{libexec}/bin/scalate" "$@" EOS end def install - - # Recursively fix the permissions of extracted regular files excluding the bin directory contents. + # Recursively fix the permissions of extracted regular files + # excluding the bin directory contents. %w{ archetypes docs lib samples license.txt readme.html }.each do |name| Find.find(name) do |path| if File.file?(path) @@ -30,13 +28,11 @@ class Scalate < Formula prefix.install %w{ license.txt readme.html } libexec.install Dir['*'] - (bin+'scalate').write startup_script end - def caveats - <<-EOS.undent - Software was installed to: + def caveats; <<-EOS.undent + Scalate was installed to: #{libexec} EOS end |
