aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/dirdiff/pkg-descr
blob: e98aad897647c3b1cc4e394edadad518099ead36 (plain) (blame)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
            Dirdiff-1.2.

            Paul Mackerras
            Linuxcare, Inc.
            <paulus@linuxcare.com.au>

Dirdiff is a graphical tool for displaying the differences between
directory trees and for merging changes from one tree into another.
Dirdiff can handle up to 5 trees.  It displays a main window with a
list of the files which are different between the trees, with colored
squares to indicate the relative ages of the versions.  A menu allows
you to display the differences between any two of the versions in
another window.  Another menu allows you to copy the file from one
tree to another.

The differences window basically displays the output of `diff -u' with
colored backgrounds to indicate which version each line comes from.
The differences window also has a series of checkboxes which allow you
to selectively apply changes from one version to another.  You apply
the selected changes using the merge menu.  Dirdiff will then pop up
another window containing the merged file.  You can then edit the
merged version and save it back into file.


What's new in dirdiff-1.2.
--------------------------

* The help text and Makefile have been updated, thanks to Martin Pool.


What was new in dirdiff-1.1.
----------------------------

* Dirdiff can now generate a patch containing the differences in a
  selected set of files between any two directory trees.  See the
  File -> Make patch submenu in the main window.

* Some key bindings have been fixed.

* The results of a merge are now put into a window where it can be
  inspected and edited, rather than immediately replacing the original
  file.

* There is now a find function which can be used in the differences
  window, the merge window and the patch window.

* Various bugs have been fixed.


Installation.
-------------

Dirdiff is a Tcl/TK script, so no compilation is required.  Dirdiff
however can make use of a shared library called filecmp.so.0.0 for
comparing files.  This is optional, but it has two benefits: (a)
comparing files is faster with filecmp.so.0.0 (without it, dirdiff has
to start an external process running `cmp'), and (b) filecmp.so.0.0
can optionally ignore RCS strings when it is comparing two files.

The Makefile in this directory will compile filecmp.so.0.0, and
install it and dirdiff.  By default dirdiff is installed in
/usr/local/bin and filecmp.so.0.0 is installed in /usr/local/lib.
Doing `make' will compile filecmp.so.0.0; `make install' will install
dirdiff and filecmp.so.0.0.

However, on many systems, Tcl/Tk does not look in /usr/local/lib for
shared libraries, and so it will not find filecmp.so.0.0.  This is not
fatal; the consequences are that it will be a bit slower and that the
`ignore RCS strings' option is not available.  One solution is to
install in /usr/bin or /usr/lib.  To do this, you can do `make install
DESTDIR=/usr'.  Under Linux, you can alternatively edit your
/etc/ld.so.conf to add /usr/local/lib and re-run ldconfig (after
installing filecmp.so.0.0 in /usr/local/lib).


Usage.
------

To use dirdiff, you invoke it from the command line with a list of
directories (between 2 and 5).  For example, suppose I have 3 copies
of the Linux kernel source code, in directories called linux, bk, and
pmac.  I can see the differences between these 3 trees with a command
like:

$ dirdiff linux bk pmac

This will display the file list window and start comparing the trees,
displaying files which differ as they are found.  To see the
differences between two versions, click on the file name and then
select the versions to compare from the Diff menu.  To copy from one
tree to another, click on the file name and select the copy operation
from the Copy menu.

In the differences window, there are checkboxes to the left of all the
sections which are different.  You can use button 1 to select an
individual checkbox, or shift-button 1 or button 3 to select a whole
group.  Selecting a line means that you are asking for that change to
be made when you update either of the files using the Merge menu.  The
line will be removed if it is already present or added if it is not
present.
t/cgit.cgi/freebsd-ports-gnome/commit/multimedia/xvid?h=gstreamer0.10-removal&id=67a33dbebac93dd2d9eef2ec5e9f23a922128e66'>Update XviD to version 1.0.1, chase shared library bump through dependencies,lofi2004-06-123-4/+4 * SIZEify.lofi2004-03-181-0/+1 * Update xvid to latest release and chase library dependencies in portslofi2003-08-134-7/+17 * - Update to 0.9.1fjoe2003-03-306-127/+9 * De-pkg-comment.knu2003-02-212-1/+1 * o update MASTER_SITES.nork2003-02-081-9/+11 * Remove dependency on automake again, just leave the USE_PERL_BUILD there.edwin2003-01-201-1/+0 * Port requires autom4te.edwin2003-01-201-0/+2 * o Update to 0.9.0lioux2003-01-117-61/+89 * Deploy USE_REINPLACElioux2002-11-031-3/+4 * o Add additional include file for the benefit of upcoming portlioux2002-07-252-0/+11 * Update MASTER_SITESlioux2002-07-161-1/+1 * Update to 0.20020412pat2002-05-233-19/+12