Re: OT: SourceForge
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62406
interpreted = N
texte = Clint Davis wrote:> I downloaded a patch (created using diff) for a PHP script from SourceForge.> Anyone know how to apply this type of patch on Unix?$ man patchshould get you somewhere, but here is the options you are likely to need:$ patch -b -p0 -i FILENAME --dry-runwill attempt to apply the patch (but won't actually do so). The various options are as follows:-b = make a backup of the file being patched-p0 = remove 0 directory elements before trying to locate file(s) to patch. If the person who created the diff made it from some directory other than where you are when you try and apply the patch, you may need to remove some portion of the path inside the patch before it will find the file locally.-i = use this file as the patch (otherwise it assumes that it will get the diff on STDIN).--dry-run = guess ;-)After you have confirmed that the patch applies cleanly (if it doesn't, try adding -F3 to make patch look a little harder), then remove the --dry-run and execute the same command again.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- Re: OT: SourceForge ( John Peacock 2005)
- OT: SourceForge ( Clint Davis 2005)
|
Clint Davis wrote:> I downloaded a patch (created using diff) for a PHP script from SourceForge.> Anyone know how to apply this type of patch on Unix?$ man patchshould get you somewhere, but here is the options you are likely to need:$ patch -b -p0 -i FILENAME --dry-runwill attempt to apply the patch (but won't actually do so). The various options are as follows:-b = make a backup of the file being patched-p0 = remove 0 directory elements before trying to locate file(s) to patch. If the person who created the diff made it from some directory other than where you are when you try and apply the patch, you may need to remove some portion of the path inside the patch before it will find the file locally.-i = use this file as the patch (otherwise it assumes that it will get the diff on STDIN).--dry-run = guess ;-)After you have confirmed that the patch applies cleanly (if it doesn't, try adding -F3 to make patch look a little harder), then remove the --dry-run and execute the same command again.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Nested tags count question (1997)
[WebDNA] Need to convert unix date? (2009)
random images (1997)
Emailer Set Up (1997)
problems with 2 tags shakur (1997)
[WebDNA] Sorry WebDNA server not running (2014)
won't serve .tpl (2000)
RE: OK, here goes... (1997)
Include from DB (2002)
[OT] Helllllooooooo.... (2002)
Out of the woodwork (2007)
New Command prefs ... (1997)
autosensing lanague selection (1997)
Some Questions (1997)
Bug? (1997)
emailer (1997)
Review comparison by PC Magazine: Open for On-line Business (1997)
Remove from list server (1997)
Shownext! (1998)
2.1 bugs left over from beta cycle (1998)