homebrew-core/Formula/multitail.rb
2018-07-14 19:36:25 +01:00

30 lines
1 KiB
Ruby

class Multitail < Formula
desc "Tail multiple files in one terminal simultaneously"
homepage "https://vanheusden.com/multitail/"
url "https://vanheusden.com/multitail/multitail-6.4.2.tgz"
sha256 "af1d5458a78ad3b747c5eeb135b19bdca281ce414cefdc6ea0cff6d913caa1fd"
head "https://github.com/flok99/multitail.git"
bottle do
rebuild 1
sha256 "b8d2ab93cd8bf7954ffc49ed929aa0cf2c60a2ebeb872e9d3686d314af043be2" => :high_sierra
sha256 "ec1007a1ab7ffc9394f25d1a838d54051c04c14667721e8db9f49803084f6dcc" => :sierra
sha256 "b9c5e200dab1bf30ef4bd9bb257d5728c6779552aab97a1ddc65d02ad697cd8f" => :el_capitan
end
def install
system "make", "-f", "makefile.macosx", "multitail", "DESTDIR=#{HOMEBREW_PREFIX}"
bin.install "multitail"
man1.install gzip("multitail.1")
etc.install "multitail.conf"
end
test do
if build.head?
assert_match "multitail", shell_output("#{bin}/multitail -h 2>&1", 1)
else
assert_match version.to_s, shell_output("#{bin}/multitail -h 2>&1", 1)
end
end
end