summaryrefslogtreecommitdiff
path: root/contrib/patchwork/pw-am.sh
blob: 1c64aa5d6492c473cb91edf990df64ce539bce3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# Idea and implementation:  Koen Kooi
# Multiple patches support: Marcin Juszkiewicz
#
# This script will fetch an 'mbox' patch from patchwork and git am it
# usage: pw-am.sh <number>
# example: 'pw-am.sh 221' will get the patch from http://patchwork.openembedded.org/patch/221/

for patchnumber in $@;
do
	wget -nv http://patchwork.openembedded.org/patch/$patchnumber/mbox/ -O pw-am-$patchnumber.patch
	git am -s pw-am-$patchnumber.patch
	rm pw-am-$patchnumber.patch
done