Tremulous Forum

Mods => Modding Center => Topic started by: infestor1 on May 03, 2009, 04:36:57 am

Title: .patch
Post by: infestor1 on May 03, 2009, 04:36:57 am
What are those .patch files I keep seeing in my QVM downloads?

What are they, and how do I use them?

Thanks in advance!
~Andrew
Title: Re: .patch
Post by: gimhael on May 03, 2009, 08:08:31 am
.patch files contain the differences between two versions of text files (usually source codes).
They can be generated with the "diff" program and applied with the "patch" program.
All the boring details are here (http://www.gnu.org/software/hello/manual/diff/index.html).

You basically have to get the common source code, then apply the .patch file to produce the patched sourcecode, and then compile a new QVM from that.
Title: Re: .patch
Post by: riderrocker on July 28, 2009, 11:04:17 pm
yeah, but how exactly do you apply the patch?
Title: Re: .patch
Post by: David on July 28, 2009, 11:31:57 pm
If the QVM works fine, then you can just ignore the patch.
As gimhael link said, patch -p0 < ./thefile.patch does the trick.
Title: Re: .patch
Post by: riderrocker on August 04, 2009, 07:06:20 am
yeah, i got it, thanks