On Wed, Sep 30, 2009 at 10:38 AM, steve <steve@xxxxxxxxxxxx> wrote:
Hi,
Just a couple of points worth mentioning ...
"--dry-run" switch. According to the man page:
? ? ? --dry-run
? ? ? ? ?Print the results of applying the patches without actually changing
any files.
Another userful switch is the -b or -B switches - Make backup file of the
files being patched. See the man page for more info.
Umm. That is incorrect. patch reads from stdin. So, you can also
send the
output of a pipe to patch. For instance in the days before git, the quick
way to update your kernel sources if you already had an old version of the
sources was to get only the patchset and apply them. Something like ...
$ cd /usr/src/patches
$ wget -O- ftp://www.kernel.org/<url>/patch-<version>.bz2 | bunzip2 - |
patch -p1
...so, you can also send multiple patchfiles to patch ...