diff --git a/Aliases/dupeseek b/Aliases/dupeseek new file mode 120000 index 00000000000..746a5b60357 --- /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 00000000000..383b09622bd --- /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