On Tue, Jan 6, 2009 at 7:17 PM, Torfinn Ingolfsen
<[email protected]> wrote:
> Is ther a "secret handshake" to make patch put the files in their
> correct place? (Except for reading through the whole patchfile to
> determine if all touched filews are in the same directory.)
>

patch -p0 < patchfile

This will place the files into the correct locations.

Patch with no '-p' option will first try to put the files in the path
provided in the patch file, if the path exists, otherwise it places
the files in the current directory.

See the man page for patch.

Scot
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"

Reply via email to