Author Topic: .patch  (Read 4485 times)

infestor1

  • Posts: 142
  • Turrets: +6/-28
    • 345356745i624567
.patch
« 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

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: .patch
« Reply #1 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.

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.

riderrocker

  • Posts: 28
  • Turrets: +0/-3
Re: .patch
« Reply #2 on: July 28, 2009, 11:04:17 pm »
yeah, but how exactly do you apply the patch?

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: .patch
« Reply #3 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.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

riderrocker

  • Posts: 28
  • Turrets: +0/-3
Re: .patch
« Reply #4 on: August 04, 2009, 07:06:20 am »
yeah, i got it, thanks