OS4 DepotLogo by Alkaron 
(anonymous IP:,2216) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (600)
   o Document (22)
   o Driver (97)
   o Emulation (148)
   o Game (1005)
   o Graphics (499)
   o Library (116)
   o Network (233)
   o Office (66)
   o Utility (927)
   o Video (69)

Total files: 4379

Full index file
Recent index file



Support the site

 Readme for:  Utility » Filetool » xdelta3.lha


Description: binary diff, differential compression tool
Download: xdelta3.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 83kb
Version: 3.0t
Date: 27 Dec 2007
Author: Josh McDonald
Submitter: Alex Carmona
Email: AmigaOne/theworld net
Homepage: http://xdelta.org
Category: utility/filetool
License: GPL
Distribute: yes
Min OS Version: 4.0
FileID: 3298
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 364  (Current version)
364  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
xdelta3 - A modern equivalent to SAS/C scompare/spatch


This is a quick OS4 port of the very latest beta of xdelta3 from 
http://xdelta.org or http://xdelta.googlecode.com

It extracts the differences between two versions of a file and saves it to a
.delta file which can then be used to recreates the new version.

It is most useful for online distribution of updates to very large files, such
as ISO images or programs archives adding up to dozens or hundreds of megabytes
because only the (compressed) difference need to be downloaded rather than the
whole archive/file.

I didn't plan on doing this but that's what I get for telling Jörg Strohmayer
that it would be nice to have a working native scompare/spatch combo :-P

He mentionned xdelta, one thing lead to another, and with his guidance I was
able to compile it while he also provided a miniature version of decoder-only
version of xdelta3 (xdelta3-decoder) which is small enough to be distributed
along with .delta updates like "spatch" would be with .pch files.

The only feature which isn't enabled in this port is the external compression,
due to its reliance on fork() and a few other functions which would require
some replacement to be hard-coded.
It doesn't reduce the functionality of the program though.

64bit support (files larger than 4GB) hasn't been tested so beware.

Some advantages over spatch are:

- speed, xdelta3 is at least 5x faster,
- size, the .delta file produced is significantly smaller than a .pch file,
- cross-platform, .delta files can be read/written on Win/Linux/OSX


Say you have FileA, made some changes and saved it as FileB.
Now if you want to send only the changes to someone, you can generate a delta
file with the following command:

 xdelta3 -s FileA FileB FileAB.delta

Then you could send xdelta3-decoder along with FileAB.delta to that someone
and he would use the following command:

 xdelta3-decoder -s FileA FileAB.delta

which would recreate FileB (the original filename is stored in the delta file).

To recreate FileB with a different filename:

 xdelta3-decoder -s FileA FileAB.delta FileXYZ


Get the sources from http://xdelta.googlecode.com/files/xdelta3.0t.tar.gz

Normally it should be enough to use 'gmake xdelta3-noext' but with my
SDK with gcc 3.4.4 that doesn't work so I had to use:

gcc -mcrt=newlib -Os -msdata -mmultiple -Wall -Wshadow xdelta3.c 

Thanks to Jöerg for the help and to Josh McDonald for xdelta

Copyright © 2004-2024 by Björn Hagström All Rights Reserved