Generating patch files

John Merryweather Cooper john_m_cooper at yahoo.com
Wed Jun 20 02:06:18 UTC 2007


Steffen Beyer wrote:
> Hi,
> 
> I just started creating my first port for a program names qtpfsgui.
> 
> Currently, there are several files to patch. Usually I would run "diff
> -r" to create one large patch, but the build system -- and the rules ,)
> -- expect a separate diff for each file to be patched.
> 
> Is there an easy way to create this set of files, i.e. cutting the patch
> into pieces and naming the files accordingly? I looked through the
> handbook and various tools, but couldn't find the right one.
> 
> Or did I miss the point here?
> 
> Regards,
textproc/makepatch port will automate the generation of diff files.

# makepatch -diff="diff -ruN" -nomanifest old-dir new-dir

will do the majority of your work.

jmc



More information about the freebsd-ports mailing list