aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-15 11:20:39 -0700
committerAdam Vandenberg2010-08-15 11:20:39 -0700
commit30e030e5ba14aecb7d7ab2c231e06d6d4e979720 (patch)
tree46eb2466a8ff28965f732e21c4471437e406166e
parentde6f880ed11603a6ed4b1a67d4e0aae86037de4e (diff)
downloadhomebrew-30e030e5ba14aecb7d7ab2c231e06d6d4e979720.tar.bz2
Improve activemq shim scripts.
-rw-r--r--Library/Formula/activemq.rb15
1 files changed, 3 insertions, 12 deletions
diff --git a/Library/Formula/activemq.rb b/Library/Formula/activemq.rb
index 3c2213807..20ed89800 100644
--- a/Library/Formula/activemq.rb
+++ b/Library/Formula/activemq.rb
@@ -7,10 +7,10 @@ class Activemq <Formula
skip_clean 'libexec/webapps/admin/WEB-INF/jsp'
- def startup_script
+ def startup_script name
<<-EOS.undent
#!/bin/bash
- exec #{libexec}/bin/activemq
+ exec #{libexec}/bin/#{name} $@
EOS
end
@@ -19,16 +19,7 @@ class Activemq <Formula
prefix.install %w{ LICENSE NOTICE README.txt }
libexec.install Dir['*']
- (bin+'activemq').write startup_script
- end
-
- def caveats
- <<-EOS.undent
- ActiveMQ was installed to:
- #{libexec}
- `activemq` is a startup script that will run the server
- from its installed location.
- EOS
+ (bin+'activemq-admin').write startup_script('activemq-admin')
end
end