You have two programs, "diff" and "patch".
To create a "patchfile", issue the following: diff -u src/game_shared/gamestats/ep1_gamestats.h.old src/game_shared/gamestats/ep1_gamestats.h > gamestats.patch (The first filename is the old, the second the new file.) To apply a patchfile, do the following: patch -p0 < gamestats.patch Note that you must be in the directory that contains the directory "src" for the patch command to work like this. If you have a situation where the paths in the patchfile show up like this: --- srcengine/src/game_shared/gamestats/ep1_gamestats.h +++ srcengine_new/src/game_shared/gamestats/ep1_gamestats.h ... and your folders are not named like that, you can descend into whatever directory you have "src" in and run patch with -p1. If you don't even have an "src" folder, you can go into the folder that contains the game_shared subdirectory and, you got it, -p2. (-pN basically strips the first N parts of the path in the patchfile before it is applied.) To reverse a patch, I think you gotta call patch with an -r, but don't take that as an absolute truth. Hope this helped, ~~ Ondra On 01.06.07 4:50 Uhr, Drak wrote:
This is a multi-part message in MIME format. -- [ Picked text/plain from multipart/alternative ] I never really figured this out, what is "Diff and Patch"? I see it on the Valve dev wiki. And seeing somwhat of "patch files". Example: --- src/game_shared/gamestats/ep1_gamestats.h 2006-08-05 10:59:06.091375000 -0500 +++ src/game_shared/gamestats/ep1_gamestats.h 2006-08-13 16:10:52.000000000 -0500 @@ -11,7 +11,7 @@ #endif And i try'ed looking it up, and only found that it seemed to be a linux tool. I did find Windows builds, but was confused on how to work it. (Seemed to be that it takes two different files, and matches them. But nothing todo with "patch" files) -Thanks --
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

