Created
August 1, 2012 23:40
-
-
Save justinrainbow/3231597 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Jmeter < Formula | |
homepage 'http://jakarta.apache.org/jmeter/' | |
url 'http://apache.mesi.com.ar//jmeter/binaries/apache-jmeter-2.7.tgz' | |
md5 '73435baa6ed99c528dacfa36c7e1f119' | |
def startup_script name | |
<<-EOS.undent | |
#!/bin/bash | |
exec "#{libexec}/bin/#{name}" "$@" | |
EOS | |
end | |
def install | |
# Remove windows files | |
rm_f Dir["bin/*.bat"] | |
prefix.install %w{ LICENSE NOTICE README } | |
libexec.install Dir['*'] | |
(bin/'jmeter').write startup_script('jmeter') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment