aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/icdiff.rb
blob: 9f545406d6df639c3c2463ad4ed59daa0f02b0d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Icdiff < Formula
  homepage "https://github.com/jeffkaufman/icdiff"
  url "https://github.com/jeffkaufman/icdiff/archive/release-1.7.1.tar.gz"
  sha1 "8af0bb43cb15096fcea1a1ab9a7130d4ca35a058"

  bottle do
    cellar :any
    sha1 "6119783a80f264ca23e220443709e928fcf998b6" => :yosemite
    sha1 "5a1b2d11e972d003be88ddec44a0289a2bef4fa3" => :mavericks
    sha1 "d439ece392e2fbaccabfe95408ce5434ec003a13" => :mountain_lion
  end

  def install
    bin.install "icdiff", "git-icdiff"
  end

  test do
    (testpath/"file1").write "test1"
    (testpath/"file2").write "test2"
    system "#{bin}/icdiff", "file1", "file2"
    system "git", "init"
    system "#{bin}/git-icdiff"
  end
end