OS4 DepotLogo by McFly 
(anonymous IP: 18.223.32.230,0) 
 HomeRecentStatsSearchMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (596)
   o Document (22)
   o Driver (97)
   o Emulation (147)
   o Game (1004)
   o Graphics (497)
   o Library (115)
   o Network (232)
   o Office (66)
   o Utility (923)
   o Video (69)

Total files: 4365

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  UtilityBase
  IntuitionBase
  AmigaBounty


Support the site


 Readme for:  Utility » Filetool » xdelta3.lha

Xdelta3

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 07
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: 10  (Current version)
10  (Accumulated)

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

DESCRIPTION:

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


EXAMPLES:

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


COMPILING:

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 
    -DXD3_ENCODER=1-DXD3_MAIN=1 -DSECONDARY_FGK=1 -DSECONDARY_DJW=1
    -DXD3_STDIO=1 -DEXTERNAL_COMPRESSION=0 -DVCDIFF_TOOLS=1 -o R:xdelta3

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



Copyright (c) 2004-2024 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment