krutomisi
2480          
Level: 94
   

Posts: 119/2481
EXP: 8265413 For next: 91244
Since: 02-01-10
Since last post: 241 days Last activity: 181 days
|
| Posted on 03-07-10 11:51:27 PM (last edited by krutomisi at 03-07-10 08:55 PM) |
Link | Quote
| |
Well crap. Nothing like screwing that up. I'll fix the post here soon [edit : fixed]
This is a guide for using xdelta3 under the Ubuntu operating system …
This allows you to change one file into another using a patch file. It's useful for hack distribution.
You have two files - patch.xdelta3 and old.file
You have them in /home/user/folder/
You want that old.file changed into a shiny new.file
You want it now.
Install it :
Open good ole' Synaptic Package manager and search for xdelta.
Some stuff will come up, and check install on xdelta3, not plain xdelta.
Patch it :
Open up the terminal and run the stuff after the $ :
user@computer:~$ xdelta3 dequote '/home/user/folder/patch.xdelta3'
xdelta3: using default output filename: /home/user/folder/new.file
xdelta3: using default source filename: /home/user/folder/old4.file
xdelta3: file open failed: read: /home/user/folder/old4.file: No such file or directory
user@computer:~$
Rename that old.file into old4.file ...
Open up the terminal and run the stuff after the $ :
user@computer:~$ xdelta3 dequote '/home/user/folder/patch.xdelta3'
xdelta3: using default output filename: /home/user/folder/new.file
xdelta3: using default source filename: /home/user/folder/old4.file
user@computer:~$
The resulting patched file - new.file - is located in /home/user/folder/
Error it :
xdelta is different than xdelta3, therefore the two don't play nice.
Putting an xdelta patch into xdelta3 will produce this error message :
user@computer:~$ xdelta3 dequote xdelta3 dequote '/home/user/folder/something.patch'
xdelta3: not a VCDIFF input: XD3_INVALID_INPUT
user@computer:~$
The enquote function is what creates those patches :
This line of code here will take the files and generate the patch over at /home/user/folder/
When the patch is used on the old.file people have, xdelta3 will do some math and output the new.file
user@computer:~$ xdelta3 -e -s '/home/user/folder/old.file' '/home/user/folder/new.file' '/home/user/folder/patch.xdelta3'
Full a full list of commands, run the handy dandy in-program help :
user@computer:~$ xdelta3 -h
____________________
|
| |
|