home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
wdiff-0.5-src.tgz
/
tar.out
/
fsf
/
wdiff
/
README
< prev
next >
Wrap
Text File
|
1996-09-28
|
5KB
|
129 lines
`wdiff' is a front-end to GNU `diff'. It compares two files, finding
which words have been deleted or added to the first in order to create
the second. It has many output formats and interacts well with
terminals and pagers (notably with `less'). `wdiff' is particularily
useful when two texts differ only by a few words and paragraphs have
been refilled.
GNU `wdiff' has been written by Franc,ois Pinard. It is an evolving
product, and specifications might change in future releases.
Below, you will find various installation hints on special systems.
Look further down for a mini-FAQ (frequently asked questions).
See file `BACKLOG' for a summary of pending mail and articles.
See file `COPYING' for copying conditions.
See file `INSTALL' for compilation and installation instructions.
See file `NEWS' for a list of major changes in the current release.
See file `THANKS' for a list of contributors.
Your feedback will help us to make a better and more portable
product. Mail suggestions and bug reports (including documentation
errors) for this program to `bug-gnu-utils@prep.ai.mit.edu'.
.-------.
| Hints |
`-------'
Here are a few hints which might help installing `wdiff' on some
systems. Most may be applied by temporary presetting environment
variables while calling `./configure'. File `INSTALL' explains this.
* This program does not require termcap, but takes advantage of it
when it is available. You may want to get and install GNU termcap
first from /@prep.ai.mit.edu:pub/gnu/termcap-1.2.tar.gz, or better.
* If you have termcap emulation routines in libcurses.a and you do not
have libtermcap.a, and until I find a way to do better, please use:
LIBS=-lcurses ./configure
* If you have both more and less and you prefer more over less, then
prefix the call to configure with your pager selection, as in:
PAGER=more ./configure
* There is a simple minded change bars producer in `wdiff', which is
not installed by default, nor documented. If you nevertheles want
it, one way to get it is requesting, at configure time:
./configure --enable-cbars
.-----.
| FAQ |
`-----'
Finally, here is a kind of FAQ for `wdiff', made up of replies I
wrote many times for questions received over email.
Q: How is `wdiff' different from `diff -w'?
`wdiff' finds word differences, ignoring spaces, tabs and
newlines, while `diff -w' finds *line* differences, ignoring
spaces and tabs. Also, each program uses its own output format.
Q: Why not simply apply `diff' to files split one word per line?
You like the way `wdiff' formats its output. And it's speedier too.
Q: Why calling an external `diff'? Could not diff be built in `wdiff'?
It's not fruitful to rewrite another `diff'. I'd rather see
`wdiff' integrated in GNU `diff' than the other way around.
When `wdiff' will have matured enough, it *might* be integrated
into GNU `diff' distribution, or in GNU `diff' itself.
Many user requests for additions to `wdiff' have been postponed
until `wdiff' is integrated in `diff'. However, for the time
being, the integration project has been put on the back burner.
Q: How about `spiff' by Dan Nachbar <nachbar@bellcore.com>?
`spiff' is far more general than `wdiff'. On the other end,
`wdiff' is a lot faster, needs almost no memory, and can afford
handling big files in reasonnable time. Despite its lack of
generality, `wdiff' does one of the most usual jobs, so it
is quite useful after all. I might try retrofitting some of
`spiff' features into `wdiff', but not on short term.
Q: How do I get to `wdiff' documentation?
There are many ways:
1) Calling just `wdiff', without arguments, will summarize
its usage.
2) You can look at the file `wdiff.info' using any ASCII editor,
or even print the file as is.
3) If properly installed, you may browse `wdiff.info' from
inside GNU Emacs by typing the command:
C-u M-x info RET wdiff.info RET .
4) With the standalone Info reader, use `info -f wdiff.info'.
You can find the standalone info reader in file texinfo-3.?.tar.gz
in /pub/gnu from prep.ai.mit.edu: just unpack it and look into
the C subdirectory.
5) If you have TeX, execute the command `make dvi' then
process and print `wdiff.dvi' the usual way.
6) Colin Brough <cmb@epcc.ed.ac.uk> contributed a man page,
describing `wdiff' at level 0.04. The man page will be
distributed and installed along with `wdiff' as long as Colin
will want to maintain it.
Q: Can we use `wdiff' from within GNU Emacs?
Of course. You might be loosing some output features. James
Ganong <jeg@ced.berkeley.edu> wrote `collatew.el', generalizing
the Emacs LISP compare-windows function in the spirit of `wdiff'.
Q: How much memory `wdiff' exactly needs?
`wdiff' uses a fixed amount of memory. Long lines or long files
are no handicap. All the true work is done by `diff' under the
scene, and `diff' needs memory itself. GNU `diff' swallows both
files in memory first.