2017-12-21 10:23:26 +00:00
|
|
|
class Jdupes < Formula
|
|
|
|
desc "Duplicate file finder and an enhanced fork of 'fdupes'"
|
|
|
|
homepage "https://github.com/jbruchon/jdupes"
|
2018-05-03 07:18:23 +00:00
|
|
|
url "https://github.com/jbruchon/jdupes/archive/v1.10.1.tar.gz"
|
|
|
|
sha256 "94f0a5d50738f912f552cd99b2b1658c1bdeee0ff2836601999316ebc0a229a5"
|
2017-12-21 10:23:26 +00:00
|
|
|
|
2018-01-19 13:00:40 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2018-05-03 07:39:03 +00:00
|
|
|
sha256 "f8ef99cc179edeedb76780de8a4b90ffe000c1e614cae70452240d2de6d54646" => :high_sierra
|
|
|
|
sha256 "db20c7450f27fc5bc4dcff7586b600ae93efae704a5109ece2f8806993a09722" => :sierra
|
|
|
|
sha256 "51d832097770ea6fbe68e0ff509a16c493e12ba4d62e8bcd7182a36be8ff43ad" => :el_capitan
|
2018-01-19 13:00:40 +00:00
|
|
|
end
|
|
|
|
|
2017-12-21 10:23:26 +00:00
|
|
|
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
|