Also you might want to add the following to certain files before
running Kris's script.
in put "project frameworks/base/" as first line
in "0001-1.-added-mouse-cursor.patch" put "project frameworks/base/"
as first line
in "0001-1.-enabled-power-mgt.patch" put "project vendor/asus/
eee_701/" as first line
in "atl2-2.2.3.patch" put "project kernel/" as first line
that will allow his script to pick up the locations to patch for
the .patch files that do not have this directive.
Also as Chih-Wei mentioned, try
for patch in `pwd`/../*patch ; do
project=`awk '/^project /{print $2}' $patch`
(cd $project && git apply $patch)
done
Kasuko
On Apr 24, 6:43 am, Chih-Wei <[email protected]> wrote:
> I'd like to suggest to use 'git apply $patch' instead of 'patch -p1
> $patch' directly,
> as it would apply the patch in atomic way (all success, or all fail).
>
> On 4月22日, 下午10時04分,kewarken<[email protected]> wrote:
>
> > 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
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---