04a7901219
Closes Homebrew/homebrew#34970. Signed-off-by: Tim D. Smith <git@tim-smith.us>
20 lines
493 B
Ruby
20 lines
493 B
Ruby
require "formula"
|
|
require "tempfile"
|
|
|
|
class Icdiff < Formula
|
|
homepage "https://github.com/jeffkaufman/icdiff"
|
|
url "https://github.com/jeffkaufman/icdiff/archive/release-1.6.0.tar.gz"
|
|
sha1 "542795c92023ed75ed5e043386e82a9dfc8f8691"
|
|
|
|
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
|