summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hak <adiamas@rockbox.org>2002-10-12 08:34:57 +0000
committerRobert Hak <adiamas@rockbox.org>2002-10-12 08:34:57 +0000
commit57bf2ca47599058eb39e7d151bfb574fd31f883f (patch)
tree7c3447b79d9a43117638820c596c40c6993e07d3
parent8a2bd30baaeed9cf938611d30f83c5e67a115e4e (diff)
downloadrockbox-57bf2ca47599058eb39e7d151bfb574fd31f883f.tar.gz
rockbox-57bf2ca47599058eb39e7d151bfb574fd31f883f.zip
how do i apply a patch.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2598 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--docs/FAQ18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/FAQ b/docs/FAQ
index 9007e7f509..f8f9bd8d0f 100644
--- a/docs/FAQ
+++ b/docs/FAQ
@@ -473,3 +473,21 @@ Q56: I keep shutting off my player in my pocket. Can the OFF (Recorder) or
473A56: No. Unfortunately, the ON/OFF mechanisms are handled entirely in 473A56: No. Unfortunately, the ON/OFF mechanisms are handled entirely in
474 hardware. The firmware can read the keys, but can't prevent them from 474 hardware. The firmware can read the keys, but can't prevent them from
475 shutting off the player. 475 shutting off the player.
476
477Q57: Could you tell me how to apply a patch?
478A57: There are a ton of ways to apply a patch. One way is to use the (GNU)
479 'patch' program. It used like this:
480
481 $ cd rockbox-root
482 $ patch < magic.patch
483
484 Sometimes, the diff has path info you want to strip so that patch can
485 find your file names. -p then takes off a number of "path parts" from
486 left:
487
488 $ patch -p0 < magic.patch
489 - or -
490 $ patch -p1 < magic.patch
491
492 If patch can't apply some changes that are in the diff, you'll get those
493 particular changes in a file named "[source-file].rej".