blob: d9d1187b0b1bc48e183dd30ad5bc22d3a7e7436a [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
Andrew Geissler9aee5002022-03-30 16:27:02 +000012 wget -nv http://patchwork.yoctoproject.org/patch/$patchnumber/mbox/ -O pw-am-$patchnumber.patch
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013 git am -s pw-am-$patchnumber.patch
14 rm pw-am-$patchnumber.patch
15done