On Jan 23, 2004, at 3:47 PM, David R. Morrison wrote:


Here's a simple method.

1) Unpack the source tarball, which will give a directory like foo-1.2.3/
2) Do all necessary editing of source files within foo-1.2.3/
3) Rename foo-1.2.3/ to foo-1.2.3-patched/
4) Unpack a second copy of the source tarball, into foo-1.2.3/
5) Now, working from the directory which contains both foo-1.2.3 and
foo-1.2.3-patched, run the command
diff -ruN foo-1.2.3 foo-1.2.3-patched > foo.patch
(You might need to adjust some permissions to get this to work, or
run it under sudo.)


-- Dave

If you use emacs, or another editor that leaves "backup files" about, it's probably a good idea to remove those before making the diff. Trust me, when it comes time to prepare a new patch against foo-1.2.4, you don't want copies of Makefile~ and configure~ clutering up the patch file, and complicating the task of reconstructing fink related changes.

Jeremy



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to