aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/runit.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-04 16:56:47 -0700
committerAdam Vandenberg2011-04-04 16:56:47 -0700
commit1fb85efce5e47a832f187f9c8ee12bc42649fa3a (patch)
treebfaf9f7b0f5eb90f8d184179c0fa962621514240 /Library/Formula/runit.rb
parentf9f90beaa129c78ab31a24c49960dce2455d9eda (diff)
downloadhomebrew-1fb85efce5e47a832f187f9c8ee12bc42649fa3a.tar.bz2
Rewrite caveats to new style.
To make it easier to copy and paste multiline scripts from caveats, no longer use $ as a prompt marker.
Diffstat (limited to 'Library/Formula/runit.rb')
-rw-r--r--Library/Formula/runit.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/Library/Formula/runit.rb b/Library/Formula/runit.rb
index bf451e846..9b8721209 100644
--- a/Library/Formula/runit.rb
+++ b/Library/Formula/runit.rb
@@ -20,22 +20,23 @@ class Runit < Formula
# names added to package/commands. Read the file for the commands and
# install them in homebrew.
rcmds = File.open("package/commands").read
+
rcmds.each do |r|
bin.install("command/#{r.chomp}")
man8.install("man/#{r.chomp}.8")
end
+
(var + "service").mkpath
end
- def caveats
- <<-END_CAVEATS
-This formula does not install runit as a replacement for init.
-The service directory is #{var}/service instead of /service.
-To have runit ready to run services, start runsvdir:
+ def caveats; <<-EOS.undent
+ This formula does not install runit as a replacement for init.
+ The service directory is #{var}/service instead of /service.
- $ runsvdir -P #{var}
+ To have runit ready to run services, start runsvdir:
+ runsvdir -P #{var}
-Depending on the services managed by runit, this may need to start as root.
- END_CAVEATS
+ Depending on the services managed by runit, this may need to start as root.
+ EOS
end
end