25 lines
881 B
Ruby
25 lines
881 B
Ruby
class Jdupes < Formula
|
|
desc "Duplicate file finder and an enhanced fork of 'fdupes'"
|
|
homepage "https://github.com/jbruchon/jdupes"
|
|
url "https://github.com/jbruchon/jdupes/archive/v1.10.1.tar.gz"
|
|
sha256 "94f0a5d50738f912f552cd99b2b1658c1bdeee0ff2836601999316ebc0a229a5"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "f8ef99cc179edeedb76780de8a4b90ffe000c1e614cae70452240d2de6d54646" => :high_sierra
|
|
sha256 "db20c7450f27fc5bc4dcff7586b600ae93efae704a5109ece2f8806993a09722" => :sierra
|
|
sha256 "51d832097770ea6fbe68e0ff509a16c493e12ba4d62e8bcd7182a36be8ff43ad" => :el_capitan
|
|
end
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
touch "a"
|
|
touch "b"
|
|
(testpath/"c").write("unique file")
|
|
dupes = shell_output("#{bin}/jdupes --zeromatch .").strip.split("\n").sort
|
|
assert_equal ["./a", "./b"], dupes
|
|
end
|
|
end
|