How about extending patchfiles to specify the number of directory path elements to strip from the patch, like patch's -p?

This would allow us to use upstream patches without modification if they are generated with git, which prepends "a/" and "b/" to the paths.

The format could be

patchfiles foo.diff:2

which would be equivalent to "patch -p2 < foo.diff".

Blair

--
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<bl...@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to