Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | #!/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 | |
| 10 | for patchnumber in $@; |
| 11 | do |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 12 | wget -nv http://patchwork.yoctoproject.org/patch/$patchnumber/mbox/ -O pw-am-$patchnumber.patch |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 13 | git am -s pw-am-$patchnumber.patch |
| 14 | rm pw-am-$patchnumber.patch |
| 15 | done |