If you want to apply them all at once, since the patches follow a
pattern, you can do something like this from your cupcake source dir
with the patches in the directory above it:

for patch in `pwd`/../*patch ; do
    project=`awk '/^project /{print $2}' $patch`
    (cd $project && patch -p1 < $patch)
done

cheers,

Kris

On Apr 21, 2:10 pm, Gani Bhagavathula <[email protected]>
wrote:
> Guys:
>
> Thanks so much for this.  Believe me, I did read the man page, but
> could not make sense of it... If I look at it now after you guys have
> explained it, it seems so obvious...
>
> Thanks again.
>
> Gani
>
> On Apr 21, 6:51 pm, Yi Sun <[email protected]> wrote:
>
> > -p1 is good for all the patches.
> > try read "man patch" and you will get it.
>
> > On Tue, 2009-04-21 at 10:42 -0700, Gani Bhagavathula wrote:
> > > So, if a file had three patches, then I would move to the base
> > > directory of the files mentioned in the .patch file, and then go
>
> > > patch -p1 < patchfile.name
> > > patch -p2 < patchfile.name
> > > patch -p3 < patchfile.name
>
> > > like that?
>
> > > Regards,
> > > Gani
>
> > > On Apr 21, 6:12 pm, Yi Sun <[email protected]> wrote:
> > > > cd frameworks/base
> > > > patch -p1 < <where you patch is>
>
> > > > On Tue, 2009-04-21 at 10:07 -0700, Gani Bhagavathula wrote:
> > > > > Hi all:
>
> > > > > I have seen some patches at the site
> > > > >http://code.google.com/p/patch-hosting-for-android-x86-support/update...
> > > > > - How do I apply those patches?
>
> > > > > I have tried patch -p0 < cursor.patch for example, and get the
> > > > > following query
>
> > > > > can't find file to patch at input line 6
> > > > > Perhaps you should have used the -p or --strip option?
> > > > > The text leading up to this was:
> > > > > --------------------------
> > > > > |project frameworks/base/
> > > > > |diff --git a/core/java/android/view/RawInputEvent.java b/core/java/
> > > > > android/view/RawInputEvent.java
> > > > > |index 30da83e..4d9a11a 100644
> > > > > |--- a/core/java/android/view/RawInputEvent.java
> > > > > |+++ b/core/java/android/view/RawInputEvent.java
> > > > > --------------------------
>
> > > > > am I supposed to change the lines in the patch file (replace a/ with
> > > > > my actual path?)
>
> > > > > Regards,
> > > > > Gani
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to