|
From: Tim R. <Ti...@Ca...> - 2000-03-22 21:58:42
|
Patches are typically build by installing two source directories and patching one of them and then running a recursive diff on them. The command line could be: diff -Naur bzflag.orig bzflag.my > bzflag.my.patch where bzflag.my and bzflag.orig are clean, full source trees. The new patch file will then have multiple sections like: diff -Naur vnc-3.3.3r1.orig/vnc_unixsrc/vnc.conf vnc-3.3.3r1/vnc_unixsrc/vnc.conf --- vnc-3.3.3r1.orig/vnc_unixsrc/vnc.conf Wed Dec 31 17:00:00 1969 +++ vnc-3.3.3r1/vnc_unixsrc/vnc.conf Fri Feb 11 15:25:22 2000 @@ -0,0 +1,14 @@ and so on. (actual patch from VNC.. ;-) These are them applied by: $ cd bzflag $ patch -p1 < bzflag.my.patch and then the build goes as normal. Kenneth Gordon wrote: > > Tim Riker wrote: > > > I'd love to see the new feature patches up there! > > Just out of curiosity, what exactly do you consider a "patch"? If a > developer adds a feature that affects a bunch of files, should he (or she!) > submit just the files that have changed, all the files in a tarball file, > etc? > > >From the changes I've made, it seems like adding each new flag affects a > minimum of six files: > > * include/global.h > * src/common/Flag.cxx > * src/bzflag/HUDRenderer.cxx > * src/bzflag/ShotPath.cxx > * src/bzflag/menus.cxx > * src/bzfs/bzfs.cxx > > This is just to get everything up and running (including the help menus, > right-clicking on a tank, the Flag Help that comes up, etc), and this > doesn't even include adding the new functionality of the flag!! With the > number of files that would have to change, it seems to me that tarring > everything up would certainly make life easiest, but I'm not sure how that > will affect those poor Microsoft-users out there... :-) > > -- Ken > > _______________________________________________ > Bzflag-dev mailing list > Bzf...@li... > http://lists.sourceforge.net/mailman/listinfo/bzflag-dev -- Tim Riker - http://rikers.org/ - short SIGs! <g> All I need to know I could have learned in Kindergarten ... if I'd just been paying attention. |