diff options
Diffstat (limited to 'contrib/patchwork/pw-am.sh')
-rwxr-xr-x | contrib/patchwork/pw-am.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/patchwork/pw-am.sh b/contrib/patchwork/pw-am.sh new file mode 100755 index 0000000000..2ce6dc4066 --- /dev/null +++ b/contrib/patchwork/pw-am.sh @@ -0,0 +1,14 @@ +#!/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 pw-am-$patchnumber.patch +done |