-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuniqhash.cabal
51 lines (44 loc) · 1.86 KB
/
uniqhash.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: uniqhash
version: 1.1.0.0
synopsis: Filter for lines of filenames on STDIN - Show only changed files
homepage: https://github.com/sordina/uniqhash
license: MIT
license-file: LICENSE
author: Lyndon Maydwell
maintainer: [email protected]
category: System
build-type: Simple
cabal-version: >=1.8
description:
Uniqhash comes in two forms - A library and an executable.
.
* Executable
.
Filter a list of filenames based on if their contents have changed.
.
From the commandline the program is used like so:
.
> $OUTPUTTER | uniqhash
.
This will take in lines of filenames from $OUTPUTTER as the arrive, and check that
the contents of the file in question have changed since it was last seen.
If they have, then the filename will be printed to STDOUT.
.
For example, the following will output lists of files that have changed every second:
.
> (while 1; do ls -p | grep -v '/'; done) | grep --line-buffered -v '~' | uniqhash
.
* Library
.
To use the library just
.
> import Text.Uniqhash
.
See the `Text.Uniqhash` module documentation for more details.
library
exposed-modules: Text.Uniqhash, Data.Machine.MealyM, Text.UniqhashMachines, Text.UniqhashConduit, Text.UniqhashLazyIO, Text.UniqhashStreaming
build-depends: base >=4.6, containers >= 0.5, bytestring >= 0.10, pureMD5 >= 2.1, cryptonite, cryptonite-conduit, conduit, conduit-combinators, machines, pointed, mtl, machines-io, directory, streaming
executable uniqhash
main-is: Uniqhash.hs
other-modules: Text.Uniqhash, Data.Machine.MealyM, Text.UniqhashMachines
build-depends: base >=4.6, containers >= 0.5, bytestring >= 0.10, pureMD5 >= 2.1, cryptonite, cryptonite-conduit, conduit, conduit-combinators, machines, pointed, mtl, machines-io, directory, streaming