packages feed

equal-files-0.0.2.1: equal-files.cabal

Name:           equal-files
Version:        0.0.2.1
License:        GPL
License-File:   LICENSE
Author:         Henning Thielemann <haskell@henning-thielemann.de>
Maintainer:     Henning Thielemann <haskell@henning-thielemann.de>
Homepage:       http://code.haskell.org/~thielema/equal-files
Category:       Console
Synopsis:       Shell command for finding equal files
Description:
   Shell command that finds files with equal content in a given set of files.
   This is useful for finding duplicates in a set of documents
   where the same document might have been stored by accident with different names.
   Use it like
   .
   > equal-files `find my_dir -type f`
   .
   or
   .
   > find my_dir -type f | xargs equal-files
   .
   If the file names contain spaces, better use
   .
   > find my_dir -type f -printf "'%p'\n" | xargs equal-files
   .
   The program reads all input files simultaneously,
   driven by sorting and grouping of their content.
   However be prepared that due to the simultaneous access
   you may exceed the admissible number of opened files.
   .
   The program can be used as a nice example of a declarative
   yet efficient implementation of a non-trivial algorithm,
   that is enabled by lazy evaluation.
-- Stability:      Experimental
Tested-With:    GHC==6.8.2
Cabal-Version:  >=1.2
Build-Type:     Simple

Flag splitBase
   description: Choose the new smaller, split-up base package.

Executable equal-files
  Build-Depends:
    bytestring >= 0.9 && <0.10

  If flag(splitBase)
    Build-Depends:
      base >= 3
  Else
    Build-Depends:
      base >= 1.0 && < 2

  GHC-Options:    -Wall
  Hs-source-dirs: src
  Main-Is: EqualFiles.hs