patch and diff
diff example
diff -u pymod/Makefile.in.orig pymod/Makefile.in > pymodMakefile.patch
patch example
patch -p0 < ../../patches/pymodMakefile.patch
learn to use sed, and other methods of patch and diff; for example, figure out how the patch commands for gThumb worked using fink