raneman Posted March 12, 2005 Share Posted March 12, 2005 Could someone tell me where do I need to go in order to apply a patch? thx Link to comment Share on other sites More sharing options...
stevel Posted March 12, 2005 Share Posted March 12, 2005 My personal advice is to not bother and go find a different contribution that doesn't use .diff patches. These are meant to be used with a particular UNIX utility which will work only if the original file is absolutely identical to whatever the author used as a base. It's not worth the hassle. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
raneman Posted March 14, 2005 Author Share Posted March 14, 2005 My personal advice is to not bother and go find a different contribution that doesn't use .diff patches. These are meant to be used with a particular UNIX utility which will work only if the original file is absolutely identical to whatever the author used as a base. It's not worth the hassle. <{POST_SNAPBACK}> I took your advise and hand coded everything myself. It works perfectly. thx Link to comment Share on other sites More sharing options...
xtronics Posted March 29, 2005 Share Posted March 29, 2005 >These are meant to be used with a particular UNIX utility which will work only if the original file is >absolutely identical to whatever the author used as a base. It's not worth the hassle. The above is not true - the patch command can find the correct place to put the patach even if the file has been changed. Contributions SHOULD be posted as patch files using Creating a Patch File: diff -Naur olddir newdir > new-patch - or - diff -Naur oldfile newfile >new-patch There are diff and patch cammands available for Windows Then applying a contribution would be as simple as: Using the Patch Command: patch -p0 <new-patch You have to be in the correct directory. ------------------------------------------------------------------------ The first panacea for a mismanaged nation is inflation of the currency; the second is war. Both bring atemporary prosperity; both bring permanent ruin.Ernest Hemingway------------------------------------------------------------------------ Link to comment Share on other sites More sharing options...
stevel Posted March 29, 2005 Share Posted March 29, 2005 I disagree with this, though you're right in saying that if you've inserted or removed some lines not affected by the patch, it MAY be able to find the right place. Perhaps. As long as some other contribution or change didn't alter the lines being replaced. I think patches are an awful way of providing contributions. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
bglkk Posted March 29, 2005 Share Posted March 29, 2005 I think patches are an awful way of providing contributions. <{POST_SNAPBACK}> I'm with you. I remember finding one contribution that looked interesting, but I never installed it because it used a damned patch file... "Buy the ticket, take the ride..." -HST Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.