dupseek 1.3 (new formula)

Interactive program to find and remove duplicate files.

Closes Homebrew/homebrew#47477.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
This commit is contained in:
Benjamin Fleischer 2015-12-28 22:42:44 -06:00 committed by Andrew Janke
parent b0419f4a7e
commit 734759851a
2 changed files with 21 additions and 0 deletions

1
Aliases/dupeseek Symbolic link
View file

@ -0,0 +1 @@
../Formula/dupseek.rb

20
Formula/dupseek.rb Normal file
View file

@ -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