aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/patchwork
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2009-04-06 17:01:19 +0200
committerMarcin Juszkiewicz <hrw@openembedded.org>2009-04-06 17:11:55 +0200
commit442dcb5cfd89de0797354a38cd56f56967a3ad5c (patch)
tree43ab7466e2a74831ba9219256220a0f0caa0561c /contrib/patchwork
parent8ba39874852845b1d1ce37ba26f0e569e2541b98 (diff)
downloadopenembedded-442dcb5cfd89de0797354a38cd56f56967a3ad5c.tar.gz
pw-am.sh: script to import patches from patchwork into git repository
Diffstat (limited to 'contrib/patchwork')
-rwxr-xr-xcontrib/patchwork/pw-am.sh14
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