ack: use version attribute

This commit is contained in:
Jack Nagel 2014-03-18 16:45:00 -05:00
parent c2a5a33c7f
commit 530cb57cf2

View file

@ -7,7 +7,7 @@ class Ack < Formula
version '2.12'
def install
bin.install "ack-2.12-single-file" => "ack"
bin.install "ack-#{version}-single-file" => "ack"
system "pod2man", "#{bin}/ack", "ack.1"
man1.install "ack.1"
end