blob: 8987eee8eb3ecb652fe9327eb34602cee20d90ae [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001#!/bin/sh
2#
3# Idea and implementation: Koen Kooi
4# Multiple patches support: Marcin Juszkiewicz
5#
6# This script will fetch an 'mbox' patch from patchwork and git am it
7# usage: pw-am.sh <number>
8# example: 'pw-am.sh 221' will get the patch from http://patchwork.openembedded.org/patch/221/
9
10for patchnumber in $@;
11do
12 wget -nv http://patches.openembedded.org/patch/$patchnumber/mbox/ -O pw-am-$patchnumber.patch
13 git am -s pw-am-$patchnumber.patch
14 rm pw-am-$patchnumber.patch
15done