Skip to content

Commit

Permalink
duck: simplify revision calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jan 12, 2015
1 parent b2fa07b commit 03c3b10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/duck.rb
Expand Up @@ -16,7 +16,8 @@ class Duck < Formula
depends_on "ant" => :build

def install
system "ant", "-Dbuild.compile.target=1.7", "-Drevision=#{version.to_str[/(\d\.\d(\.\d)?)\.(\d+)/, 3]}", "cli"
revision = version.to_s.rpartition(".").last
system "ant", "-Dbuild.compile.target=1.7", "-Drevision=#{revision}", "cli"
libexec.install Dir["build/duck.bundle/*"]
bin.install_symlink "#{libexec}/Contents/MacOS/duck" => "duck"
end
Expand Down

0 comments on commit 03c3b10

Please sign in to comment.