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 patch should get you somewhere, but here is the options you are likely to need: $ patch -b -p0 -i FILENAME --dry-run will 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. HTH John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

    
  1. Re: OT: SourceForge ( John Peacock 2005)
  2. 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 patch should get you somewhere, but here is the options you are likely to need: $ patch -b -p0 -i FILENAME --dry-run will 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. HTH John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

View order not right (1997) Online magazine- monthly updates and such (1999) WebCat2 - [format thousands] (1997) [WebDNA] Ubuntu 14.04 & WebDNA (2017) WebCat2b12 forgets serial # (1997) Fw: [SQL] and [index] mystery solved (2001) SiteEdit Pro Update Announcement (1997) WebCatalog Q & A pages (1997) [OT] SQL and Crackers (2000) Great product and great job ! (1997) multi-paragraph fields (1997) [Announce]: Web server security and password protection (1997) Math with Time (1997) Understanding texta (1997) POS (2000) Help name our technology! (1997) WebCat2_Mac RETURNs in .db (1997) WebCAT has the devil in it! (2003) graphics server, SSL, Netscape 4.0 (off topic) (1998) Shownext from POST (2000)