home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
text
/
diffutils_2
/
!ReadMe1st
next >
Wrap
Text File
|
1995-09-12
|
3KB
|
106 lines
GNU Diffutils 2.7
-----------------
This is port of GNU Diffutils version 2.7; including the GNU modified
version of Larry Wall's Patch program (upto version 2.1).
You should do the following to install:
ensure !Setup is run from somewhere, or add its contents to your
desktop boot file---if these variables are not set then things may
not work as well as they should, if indeed they still work.
You have been warned ;-)
copy gcmp, gdiff, gdiff3, pr and patch2-1.patch somewhere in your
Run$Path, ideally into your Library directory.
Voila. If this is the first time you have run them, then ensure you double
click on !Setup / reboot before trying them out.
These programs do the following:
gcmp
Byte compare two files.
gdiff
Differences between two files.
gdiff3
Three-way difference.
pr
Rather wild / spaced out hack of the BSD4.4 `pr' program
to paginate output.
patch
Patch file according to a file of differences.
Using
-----
Note that as these are all compiled using UnixLib, you do NOT have to use
the appalling redirection spec. you would normally have to use if you
compiled using Clib:
i.e. you can get away with
gdiff -c foo bar > diff
to put a context sensitive diff between foo and bar into the file diff.
You can then patch, similarly, avoiding the gross Acorn redirection spec.
thusly:
patch foo < diff
patch foo up to same as bar using context diff in file called diff.
Bugs
----
1. GNU sdiff isn't ported (or rather, it is but I can't see that it's any use
to anyone as it uses `ed' by default on Unix boxes and is not necessary
for RCS, and so it isn't included in this bundle.
2. If you insist on using the paginate output option of diff (hence the
pr program provided), the output is missing the time and date at the top
of each page which should be present. This is because I'm lazy and couldn't
be bothered fixing the BSD centric timing functions to be more UnixLib
friendly, so I dyked it out. If this offends then prod me and I may fix it.
3. I havent included the sources in this bundle.
Okay, heres a whistle-stop guide to how to hack diffutils if you want to:
1. Download diffutils and patch from a GNU Archive.
2. Manually configure it for Unixlib taking config.h-in as a
starting point.
3. If you are porting diffutils then examine system.h and change
the definition of same_file to always return -1, this forces
it not to rely on stat() calls to tell if files are the same, it
seems this call does odd things and isnt entirely reliable.
(At least, thats what I think it's doing, but you know what GNU's
like ;-)
4. Add in a -DHAVE_CONFIG_H to the ccflags, and change the <config.h>
includes in sources to "config.h".
5. Change any references to extern int errno to extern volatile int
errno.
6. I think that's it...
any problems using, or suggestions, I'm reachable at:
ams@amonsul.demon.co.uk
Al Slater,
65 Ellan Hay Rd,
Bradley Stoke,
Bristol.
BS12 0HA.
Note: I'm currently off Net for the Summer, hence no email. This will
be rectified as of about September.