qedit
You use qedit to apply an edit file produced by qdiff to transform one file revision to another revision of that same file. A typical use would be to distribute file updates by just distributing edit scripts for each file and the qedit utility. qedit can then use the edit scripts to transform the original files into new revisions without your having to distribute complete copies of the new revisions.
qedit checks to make sure that the size of the input revision is the same as the size of the old revision used to create the edit script; i.e. when qdiff creates the edit script, it includes a file size in the script that qedit uses to make sure that at least the size of the input file agrees with what is expected.
Command Template
qedit basefile editfile outfile
where:
basefile (required)
Is the name of the file to which the edit script will be applied.
editfile (required)
Is the name of the edit file produced by qdiff using the -editout option. It contains the changes that can be applied to the basefile to transform it into the outfile.
outfile (required)
Is the name of the file that qedit will create. The contents of this file will be identical to the second file specified on the qdiff command line that created the edit script file. For example, if you have a command of:
qdiff -editout editfile file1 file2
the outfile produced by the qedit utility will be identical to file2, assuming the basefile was identical to file1.
Example
qedit foobar.c.1.0 foobar.edit foobar.c.1.5
takes the edit script in foobar.edit, and applies it to foobar.c.1.0 to create foobar.c.1.5.
Command Line Utilities
|