AminetAminet
Search:
84476 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/misc/gpatch_os4.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Patch system for software updates
Author:ralf.gruner at t-online.de (Ralf Gruner)
Uploader:chris unsatisfactorsyoftware co uk (Chris Young)
Type:util/misc
Version:3.1
Architecture:ppc-amigaos
Date:2011-11-29
Download:http://aminet.net/util/misc/gpatch_os4.lha - View contents
Readme:http://aminet.net/util/misc/gpatch_os4.readme
Downloads:823

This is an OS4 native build of GPatch.
Below readme is the original from Aminet util/misc/gpatch.lha

GCompare / GPatch - A high quality patch system for software updates
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
GCompare generates patch files for the distribution of file updates.
GPatch applies the patches.

The patch file can contain patches for any number of files.
The file format is optimized for size - the patch files are very short.
CRC error checking provides safe operations.
The programs work with any type of files.

The patch files are portable. GPatch and GCompare executables are
available for some IX platforms and Windows.


Changes since last upload:

Added the PPC versions.
GCompare: Small changes in the help text.
Some changes in the guide and in the example scripts.


Changes since previous version:

GCompare: New algorithm for very high search speed (three-dimensional
search arrays). Needs more than 128 MB of memory for one patch or more
than 256 MB for additional patches. (Works of course still with fewer
memory available.)
Changed the CRC algorithm to get a comparable result with other programs.
New algorithm for Amiga executables (reloc hunk encoding) for much better
results.
Many improvements of the coding algorithms. New file format.

GPatch: Can now replace the old file and make an optional backup.

-------------------------------------------------------------------

Why should you use GCompare?
Here you have an example with different patch programs:

Let's assume, you have a new file of your program AWeb-II.
The world is using the old versions 3.2 and 3.3, and you want to
provide an update to the new version 3.4.
What you have to do is:


Build the difference files:

scompare -oAWeb32-34.spatch AWeb-II-3.2 AWeb-II-3.4
scompare -oAWeb33-34.spatch AWeb-II-3.3 AWeb-II-3.4

This needs 1:28 minutes, and you have two files:

AWeb32-34.spatch                240960 ----rwed
AWeb33-34.spatch                193328 ----rwed


or you use

gcompare AWeb-II-3.2 AWeb-II-3.3 AWeb.gpatch
gcompare AWeb-II-3.3 AWeb-II-3.4 AWeb.gpatch

This needs 0:59 minutes, and you have one file for both patches:

AWeb.gpatch                     220694 ----rwed

-----
Now you have to create the distribution archive. You have to add
the patcher and a script to build the new file.
For the example we leave the script out. The relevant lines of
the scripts would be:

spatch -oAWeb-II-3.4 -pAWeb32-34.spatch AWeb-II  (and for the other)
spatch -oAWeb-II-3.4 -pAWeb33-34.spatch AWeb-II
copy AWeb-II-3.4 AWeb3:AWeb-II

or

gpatch AWeb3:AWeb-II AWeb.gpatch RECURSIVE DIRECT

(This line patches both versions of the program.)

-----
So, let's build the archive:

lha -a a awebupdateS AWeb32-34.spatch
lha -a a awebupdateS AWeb33-34.spatch
lha -a a awebupdateS spatch

or

lha -a a awebupdateG AWeb.gpatch
lha -a a awebupdateG gpatch

-----
The resulting file is:

awebupdateS.lha                 277258 ----rwed

or

awebupdateG.lha                 163593 ----rwed


Contents of util/misc/gpatch_os4.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[unknown]                22378   86480  25.9% -lh6- f4b5 Nov 29 19:07 gpatch/GCompare
[unknown]                20607  100698  20.5% -lh6- 5a90 Nov 29 18:45 gpatch/GCompare.c
[unknown]                12919   77264  16.7% -lh6- 145d Nov 29 19:07 gpatch/GPatch
[unknown]                 9648   38544  25.0% -lh6- 2774 Nov 29 18:45 gpatch/GPatch.c
[unknown]                 1347    3270  41.2% -lh6- e70f Nov 29 19:05 gpatch/gpatch.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         5 files   66899  306256  21.8%            Nov 29 19:39

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>