-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
70 lines (44 loc) · 1.43 KB
/
README
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
WHAT:
=====
ua finds sets of files which are identical and kua finds files which
are identical to the given file.
LICENSE:
=======
Mozilla Public License, http://www.mozilla.org/MPL/
Also see the copyright notes in the source files.
BUILD:
======
$ sh autogen.sh CFLAGS= CXXFLAGS=-O3
$ make
$ sudo make install
In essence, this is what it actually does:
$ g++ -o ua -O3 -I. ua.cc filei.cc -lcrypto
$ g++ -o kua -O3 -I. kua.cc filei.cc -lcrypto
You may define __NOHASH and in this case, sorted tree based
data structures will be preferred to hashed ones.
$ g++ -o ua -O3 -I. -D__NOHASH ua.cc filei.cc -lcrypto
The tool uses openssl's md5 (libcrypto). The tool also uses the POSIX
getopt lib.
The tool may use sorted (tree based) or hashed data structures. By default,
hashed ones preferred. This can be overridden by specifying __NOHASH.
Also it can be passed to make as
FILES:
======
filei.h: header with class and function definitions, can be used
in other tools
filei.cc: implementation of stuff defined in filei.h, can be included
in both static and dynamic libraries
ua.cc: main of ua
kua.cc: main of kua
DOCUMENTATION:
==============
filei.h extensively documents the interface. Sparse comments in the cc
files help in understanding the code.
USAGE:
======
After install, see the man page,
$ man ua
$ man kua
Or read the online help
$ ua -vh
$ kua -vh