From 734759851aa3bcc9aa73cf93ab35853aaafff17c Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Mon, 28 Dec 2015 22:42:44 -0600 Subject: [PATCH] dupseek 1.3 (new formula) Interactive program to find and remove duplicate files. Closes Homebrew/homebrew#47477. Signed-off-by: Andrew Janke --- Aliases/dupeseek | 1 + Formula/dupseek.rb | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 120000 Aliases/dupeseek create mode 100644 Formula/dupseek.rb diff --git a/Aliases/dupeseek b/Aliases/dupeseek new file mode 120000 index 0000000000..746a5b6035 --- /dev/null +++ b/Aliases/dupeseek @@ -0,0 +1 @@ +../Formula/dupseek.rb \ No newline at end of file diff --git a/Formula/dupseek.rb b/Formula/dupseek.rb new file mode 100644 index 0000000000..383b09622b --- /dev/null +++ b/Formula/dupseek.rb @@ -0,0 +1,20 @@ +class Dupseek < Formula + desc "interactive program to find and remove duplicate files." + homepage "http://www.beautylabs.net/software/dupseek.html" + url "http://www.beautylabs.net/software/dupseek-1.3.tgz" + sha256 "c046118160e4757c2f8377af17df2202d6b9f2001416bfaeb9cd29a19f075d93" + + def install + bin.install "dupseek" + doc.install %w[changelog.txt doc.txt copyright credits.txt] + end + + test do + mkdir "folder" + touch "folder/file1" + assert_equal "", shell_output("#{bin}/dupseek -b report -f de folder").chomp + touch "folder/file2" + assert_equal "folder\\/file2", shell_output("#{bin}/dupseek -b report -f de folder").chomp + assert_equal "folder\\/file1\nfolder\\/file2", shell_output("#{bin}/dupseek -b report -f e folder").chomp + end +end