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
-~----------~----~----~----~------~----~------~--~---

Reply via email to