2014-12-07 17:43:46 +00:00
|
|
|
class Icdiff < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Improved colored diff"
|
2014-12-07 17:43:46 +00:00
|
|
|
homepage "https://github.com/jeffkaufman/icdiff"
|
2015-07-21 10:16:07 +00:00
|
|
|
url "https://github.com/jeffkaufman/icdiff/archive/release-1.7.3.tar.gz"
|
|
|
|
sha256 "5161265f72a7c9c1d2d7b0780a381743ef3d3127944a96786422802a6bc14ca5"
|
2014-12-07 17:43:46 +00:00
|
|
|
|
2014-12-22 21:51:22 +00:00
|
|
|
bottle do
|
2015-09-23 20:36:11 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "59413c9e1ef2ea94efa504c9b9e26b964904e36857d32a2f6f3e148aa092516e" => :el_capitan
|
2015-07-21 11:12:16 +00:00
|
|
|
sha256 "8fc01a5d2a039c9d657a868b6d916d01761effa1d3afa1e6f374f4a5ad266d3e" => :yosemite
|
|
|
|
sha256 "b8f8e3807628f0f687b6e8cac5b3bd7a9cbfd4d85371ad48d0fcb20288d90d23" => :mavericks
|
|
|
|
sha256 "3a47535005ba94fad4e344200e803f036cef1fb8bdb55f82bcbf014064bd58f2" => :mountain_lion
|
2014-12-22 21:51:22 +00:00
|
|
|
end
|
|
|
|
|
2014-12-07 17:43:46 +00:00
|
|
|
def install
|
|
|
|
bin.install "icdiff", "git-icdiff"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-12-08 15:22:07 +00:00
|
|
|
(testpath/"file1").write "test1"
|
|
|
|
(testpath/"file2").write "test2"
|
|
|
|
system "#{bin}/icdiff", "file1", "file2"
|
2014-12-07 17:43:46 +00:00
|
|
|
system "git", "init"
|
|
|
|
system "#{bin}/git-icdiff"
|
|
|
|
end
|
|
|
|
end
|