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>master
parent
b0419f4a7e
commit
734759851a
|
@ -0,0 +1 @@
|
|||
../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
|
Loading…
Reference in New Issue